MPLS Working Group Rajiv AsatiInternetDraft CarlosEngineering Task Force (IETF) R. Asati Request for Comments: 7552 C. Pignataro Updates: 5036, 6720(if approved) KamranK. RazaIntended status:Category: Standards Track CiscoExpires: August 2015 VishwasISSN: 2070-1721 V. ManralHewlett-Packard, Inc RajivIonos Networks R. Papneja HuaweiFebruary 26,June 2015 Updates to LDP for IPv6draft-ietf-mpls-ldp-ipv6-17Abstract The Label Distribution Protocol (LDP) specification defines procedures to exchange label bindings over eitherIPv4,IPv4 or IPv6 networks, orboth networks.both. This document corrects and clarifies the LDP behavior when an IPv6 network is used (with or without IPv4). This document updatesRFCRFCs 5036 andRFC6720. Status ofthisThis Memo ThisInternet-Draftissubmitted in full conformance with the provisions of BCP 78 and BCP 79. Internet-Drafts are working documentsan Internet Standards Track document. 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 fora maximumpublication by the Internet Engineering Steering Group (IESG). Further information on Internet Standards is available in 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 August 26, 2015.http://www.rfc-editor.org/info/rfc7552. Copyright Notice Copyright (c) 2015 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. This document may contain material from IETF Documents or IETF Contributions published or made publicly available before November 10, 2008. The person(s) controlling the copyright in some of this material may not have granted the IETF Trust the right to allow modifications of such material outside the IETF Standards Process. Without obtaining an adequate license from the person(s) controlling the copyright in such materials, this document may not be modified outside the IETF Standards Process, and derivative works of it may not be created outside the IETF Standards Process, except to format it for publication as an RFC or to translate it into languages other than English. Table of Contents 1.Introduction...................................................3Introduction ....................................................4 1.1. Topology Scenarios forDual-stack Environment.............4Dual-Stack Environment ..............5 1.2.Single-hopSingle-Hop vs.Multi-hopMulti-Hop LDPPeering......................5Peering .......................6 2. SpecificationLanguage.........................................6Language ..........................................6 3. LSPMapping....................................................7Mapping .....................................................7 4. LDPIdentifiers................................................7Identifiers .................................................8 5. NeighborDiscovery.............................................8Discovery ..............................................8 5.1. Basic DiscoveryMechanism.................................8Mechanism ..................................8 5.1.1. Maintaining HelloAdjacencies........................9Adjacencies .......................9 5.2. Extended DiscoveryMechanism..............................9Mechanism ..............................10 6. LDP Session Establishment andMaintenance......................9Maintenance ......................10 6.1. Transportconnection establishment.......................10Connection Establishment ........................10 6.1.1.DeterminingDual-Stack: Transportconnection Roles..............11Connection Preference and Role of an LSR .................................12 6.2. LDPSessions Maintenance.................................14Session Maintenance ...................................14 7. BindingDistribution..........................................15Distribution ...........................................15 7.1. AddressDistribution.....................................15Distribution ......................................15 7.2. LabelDistribution.......................................16Distribution ........................................16 8. LDP Identifiers and DuplicateNext Hop Addresses..............17Next-Hop Addresses ...............17 9. LDP TTLSecurity..............................................18Security ...............................................18 10. IANAConsiderations..........................................18Considerations ...........................................18 11. SecurityConsiderations......................................18Considerations .......................................19 12.Acknowledgments..............................................19 13. Additional Contributors......................................19 14. References...................................................21 14.1.References ....................................................19 12.1. NormativeReferences....................................21 14.2.References .....................................19 12.2. InformativeReferences..................................21References ...................................20 AppendixA.......................................................23A. Additional Considerations .............................21 A.1. LDPv6 and LDPv4 Interoperability SafetyNet..............23Net ................21 A.2. AccommodatingNon-RFC5036-compliant implementations......23Implementations Not Compliant with RFC 5036 ..21 A.3. Why prohibit IPv4-mapped IPv6 addresses inLDP...........24LDP? ............22 A.4. Why a 32-bit value even for the IPv6 LDP RouterID.............24 Author's Addresses...............................................25Id? ........22 Acknowledgments ...................................................23 Contributors ......................................................23 Authors' Addresses.................................................24 1. Introduction The LDP[RFC5036]specification [RFC5036] defines procedures and messages for exchanging FEC-label bindings over either IPv4 or IPv6 networks, or both(e.g. Dual-stack) networks.(i.e., Dual-stack networks). However,RFC5036 specificationRFC 5036 has the followingdeficiency (ordeficiencies (i.e., lacks details) inregardsregard to IPv6 usage (with or without IPv4):1) LSP1. Label Switched Path (LSP) Mapping: No rule for mapping a particular packet to a particular LSP that has an Address PrefixFECForwarding Equivalence Class (FEC) element containing the IPv6 address of the egress router2)2. LDP Identifier: No details specific to IPv6 usage3)3. LDP Discovery: No details for using a particular IPv6 destination (multicast) address or the source address4)4. LDP Sessionestablishment:Establishment: No rule for handling both IPv4 and IPv6transport addressTransport Address optional objects in a Hello message, and subsequently two IPv4 and IPv6 transport connections5)5. LDP Address Distribution: No rule for advertising IPv4or/andand/or IPv6Addressaddress bindings over an LDP session6)6. LDP Label Distribution: No rule for advertising IPv4or/andand/or IPv6 FEC-label bindings over an LDP session,andor for handling theco- existencecoexistence of IPv4 and IPv6 FEC Elements in the same FEC TLV7) Next Hop7. Next-Hop Address Resolution: No rule for accommodating the usage of duplicate link-local IPv6 addresses8)8. LDPTTLTime to Live (TTL) Security: No rule for a built-in Generalized TTL Security Mechanism (GTSM) in LDP with IPv6 (this is a deficiency inRFC6720)[RFC6720]) This document addresses the above deficiencies by specifying the desired behavior/rules/details for using LDP inIPv6 enabledIPv6-enabled networks (IPv6-only or Dual-stack networks). This document closes the IPv6 MPLS gap discussed in Sections 3.2.1, 3.2.2, and 3.3.1.1 of [RFC7439]. Note that this document updatesRFC5036[RFC5036] andRFC6720.[RFC6720]. 1.1. Topology Scenarios forDual-stackDual-Stack Environment TwoLSRsLabel Switching Routers (LSRs) may involvebasicBasic and/orextendedExtended LDPdiscoveryDiscovery in IPv6 and/or IPv4address-familiesaddress families in various topology scenarios. This document addresses the following3three topology scenarios in which the LSRs may be connected via one or more Dual-stackLDP enabledLDP-enabled interfaces(figure(Figure 1), or one or more Single-stackLDP enabledLDP-enabled interfaces(figure(Figures 2 andfigure3): R1------------------R2 IPv4+IPv6 Figure11: LSRsconnectedConnected via aDual-stackDual-Stack Interface IPv4 R1=================R2 IPv6 Figure22: LSRsconnectedConnected viatwo Single-stackTwo Single-Stack Interfaces R1------------------R2---------------R3 IPv4 IPv6 Figure33: LSRsconnectedConnected via aSingle-stackSingle-Stack Interface Note that the topology scenario illustrated infigureFigure 1 also covers the case of a Single-stackLDP enabledLDP-enabled interface(IPv4, say)(say, IPv4) being converted to aDual-stacked LDP enabledDual-stack LDP-enabled interface (by enabling IPv6 routing as well as IPv6 LDP), even though theLDPoIPv4LDP-over-IPv4 (LDPoIPv4) session may already be established between the LSRs. Note that the topology scenario illustrated infigureFigure 2 also covers the case of two routers getting connected via an additionalSingle- stack LDP enabledSingle-stack LDP-enabled interface (IPv6 routing and IPv6 LDP), even though the LDPoIPv4 session may already be established between the LSRs over the existing interface(s). This document also addresses the scenario in which the LSRs do theextended discoveryExtended Discovery in IPv6 and/or IPv4address-families:address families: IPv4 R1-------------------R2 IPv6 Figure44: LSRsinvolvingInvolving IPv4 and IPv6address-familiesAddress Families 1.2.Single-hopSingle-Hop vs.Multi-hopMulti-Hop LDP Peering The LDP TTL Security mechanism specified by this document applies only to single-hop LDP peering sessions,butnot to multi-hop LDP peering sessions, in line with Section 5.5 of [RFC5082]. [RFC5082]thatdescribes the Generalized TTL Security Mechanism (GTSM). As a consequence, any LDP feature that relies on a multi-hop LDP peering session would not work with GTSM and will warrant (statically or dynamically) disabling GTSM. Please seesection 10.Section 9. 2. Specification Language 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 [RFC2119]. Abbreviations: LDP-Label Distribution Protocol LDPoIPv4- LDP over IPv4LDP-over-IPv4 transport connection LDPoIPv6- LDP over IPv6LDP-over-IPv6 transport connection FEC-Forwarding Equivalence Class TLV-Type Length Value LSR-Label Switching Router LSP-Label Switched Path LSPv4-IPv4-signaled Label Switched Path[RFC4798]LSPv6-IPv6-signaled Label Switched Path[RFC4798]AFI-Address Family Identifier LDP Id-LDP Identifier Single-stack LDP-LDP supporting just one address family (for discovery, session setup, address/label bindingexchangeexchange, etc.) Dual-stack LDP-LDP supporting two address families (for discovery, session setup, address/label bindingexchangeexchange, etc.) Dual-stack LSR-LSR supporting Dual-stack LDP for a peer Single-stack LSR-LSR supporting Single-stack LDP for a peer Note that an LSR can be a Dual-stack and Single-stack LSR at the same time for different peers. This document loosely uses the termaddress family"address family" to meanIP"IP addressfamily.family". 3. LSP Mapping Section 2.1 of [RFC5036] specifies the procedure for mapping a particular packet to a particular LSP using three rules. Quoting the3rdthird rule fromRFC5036: "If[RFC5036]: If it is known that a packet must traverse a particular egress router, and there is an LSP that has an Address Prefix FEC element that is a /32 address of that router, then the packet is mapped to thatLSP."LSP. This rule is correct forIPv4,IPv4 (to set up LSPv4), but not forIPv6,IPv6 (to set up LSPv6), since an IPv6 router may even have a /64 or /96 or /128 (or whatever prefix length) address. Hence, that rule is updated here to use IPv4 or IPv6addressaddresses instead of /32 or /128addressesaddresses, as shown below:"IfIf it is known that a packet must traverse a particular egress router, and there is an LSP that has an Address Prefix FEC element that is an IPv4 or IPv6 address of that router, then the packet is mapped to thatLSP."LSP. 4. LDP Identifiers In line withsectionSection 2.2.2 of [RFC5036], this document specifies the usage of a 32-bit (unsigned non-zero integer) LSR Id on anIPv6 enabledIPv6-enabled LSR (with or without Dual-stacking). This document also qualifies the first sentence of the last paragraph of Section 2.5.2 of [RFC5036] to be per addressfamily and therefore updatesfamily. From Section 2.5.2 of [RFC5036]: An LSR MUST advertise the same transport address in all Hellos thatsentence toadvertise thefollowing: "Forsame label space. Updated by this document, as follows: For a given address family, an LSR MUST advertise the same transport address in all Hellos that advertise the same labelspace."space. This rightly enables the per-platform label space to be shared between IPv4 and IPv6. In summary, this document mandates the usage of a common LDPidentifier (sameIdentifier (the same LSR Idaka LDP Router Id as well as a common Labeland label space id) for both IPv4 and IPv6 address families. 5. Neighbor Discovery If Dual-stack LDP is enabled(e.g.(i.e., LDP enabled in both IPv6 and IPv4 address families) on an interface or for a targeted neighbor, then the LSR MUST transmit both IPv6 and IPv4 LDP (Link or targeted) Hellos and include the same LDP Identifier (assuming per-platform label space usage) in them. If Single-stack LDP is enabled(e.g.(i.e., LDP enabled in either an IPv6 or IPv4 address family), then the LSR MUST transmit either IPv6 or IPv4 LDP (Link or targeted)HellosHellos, respectively. 5.1. Basic Discovery Mechanism Section 2.4.1 of [RFC5036] defines the Basic Discovery mechanism for directly connected LSRs. Following this mechanism, LSRs periodically send LDP Link Hellos destined to the "all routers on this subnet" group multicast IP address.InterestingInterestingly enough, per the IPv6 addressing architecture [RFC4291], IPv6 has three "all routers on this subnet" multicast addresses:FF01:0:0:0:0:0:0:2ff01:0:0:0:0:0:0:2 = Interface-local scopeFF02:0:0:0:0:0:0:2ff02:0:0:0:0:0:0:2 = Link-local scopeFF05:0:0:0:0:0:0:2ff05:0:0:0:0:0:0:2 = Site-local scope [RFC5036] does not specify which particular IPv6'all"all routers on thissubnet'subnet" group multicast IP address should be used by LDP Link Hellos. This document specifies the usage of link-local scopee.g. FF02:0:0:0:0:0:0:2(i.e., ff02:0:0:0:0:0:0:2) as the destination multicast IP address in IPv6 LDP Link Hellos. An LDP Link Hello packet received on any of the other destination addresses MUST be dropped. Additionally, thelink- locallink-local IPv6 address MUST be used as the source IP address in IPv6 LDP Link Hellos. Also, the LDP Link Hello packets MUST have their IPv6 Hop Limit set to 255, be checked for the same upon receipt (before anyLDP specific processing)LDP-specific processing), and be handled as specified inGeneralized TTL Security Mechanism (GTSM) sectionSection 3 of [RFC5082]. The built-in inclusion of GTSM automatically protects IPv6 LDP from off-link attacks. More importantly, if an interface is a Dual-stack LDP interface(e.g.(i.e., LDP enabled in both IPv6 and IPv4 address families), then the LSR MUST periodically transmit both IPv6 and IPv4 LDP Link Hellos (using the same LDP Identifier persectionSection 4) on that interface and be able to receive them. This facilitates discovery of IPv6-only,IPv4-onlyIPv4-only, and Dual-stack peers on the interface's subnet and ensures successful subsequent peering using the appropriate (address family) transport on a multi-access or broadcast interface. 5.1.1. Maintaining Hello Adjacencies In the case of a Dual-stackLDP enabledLDP-enabled interface, the LSR SHOULD maintainlinkLink Hello adjacencies for both IPv4 and IPv6 address families. This document, however, allows an LSR to maintainRx-sideReceive-side Link Helloadjacencyadjacencies only for the address family that has been used for the establishment of the LDP session (whether an LDPoIPv4 or LDPoIPv6 session). 5.2. Extended Discovery Mechanism Theextended discoveryExtended Discovery mechanism (defined insectionSection 2.4.2 of [RFC5036]), in which the targeted LDP Hellos are sent to a unicast IPv6 address destination, requires only oneIPv6 specificIPv6-specific consideration: the link-local IPv6 addresses MUST NOT be used as the targeted LDPhelloHello packet's source or destination addresses. 6. LDP Session Establishment and Maintenance Section 2.5.1 of [RFC5036] defines a two-step process for LDP session establishment, once the neighbor discovery has completed(i.e.(i.e., LDP Hellos have been exchanged): 1. Transport connection establishment 2. Session initializationThe forthcoming sub-sectionSection 6.1 discusses the LDPconsiderationconsiderations for IPv6 and/or Dual-stacking in the context of session establishment, whereassub-sectionSection 6.2 discusses the LDPconsiderationconsiderations for IPv6 and/or Dual-stacking in the context of session maintenance. 6.1. Transportconnection establishmentConnection Establishment Section 2.5.2 of [RFC5036] specifies the use ofana Transport Address optionaltransport addressobject (TLV) in LDP Hellomessagemessages to convey the transport (IP)address,address; however, it does not specify the behavior of LDP if both IPv4 and IPv6transport addressTransport Address objects(TLV)(TLVs) are sent in a Hello message or separate Hello messages. More importantly, it does not specify whether both IPv4 and IPv6 transport connections should beallowed,allowed if both IPv4 and IPv6 Hello adjacencies were present prior tothesession establishment. This document specifiesthat:the following: 1. An LSR MUST NOT send a Hello message containing both IPv4 and IPv6transport addressTransport Address optional objects. In other words, there MUST be at most oneoptionalTransport Address optional object in a Hello message. An LSR MUST include only the transport address whose address family is the same as that of the IP packet carrying the Hello message. 2. An LSR SHOULD accept the Hello message that contains both IPv4 and IPv6transport addressTransport Address optionalobjects,objects but MUST use only the transport address whose address family is the same as that of the IP packet carrying the Hello message. An LSR SHOULD accept only the firsttransportTransport Address optional object for a given address family in the received Hellomessage,message and ignore therest,rest if the LSR receives more than onetransportTransport Address optional object for a given address family. 3. An LSR MUST send separate Hello messages (each containing either an IPv4 or IPv6transport addressTransport Address optional object) for each IP addressfamily,family if Dual-stack LDP is enabled (for an interface or neighbor). 4. An LSR MUST use a global unicast IPv6 address in an IPv6transport addressTransport Address optional object of outgoing targetedHellos,Hellos and check for the same in incoming targetedhellos (i.e.Hellos (i.e., MUST discard the targetedhello,Hello if it failed the check). 5. An LSR MUST prefer using a global unicast IPv6 address in an IPv6transport addressTransport Address optional object of outgoing LinkHellos,Hellos if it had to choose between a global unicast IPv6 address and a unique-local or link-local IPv6 address. 6. A Single-stack LSR MUST establish either an LDPoIPv4 or LDPoIPv6 session with a remote LSR as per the enabledaddress-family.address family. 7. A Dual-stack LSR MUST NOT initiate(oror accept the requestfor)for a TCP connection for a new LDP session with a remoteLSR,LSR iftheyit alreadyhavehas an LDPoIPv4 or LDPoIPv6 session(forfor the same LDPIdentifier) established.Identifier established with that remote LSR. This means that only one transport connection isestablishedestablished, regardless of IPv6or/andand/or IPv4 Hello adjacenciespresencepresent between two LSRs. 8. A Dual-stack LSR SHOULD prefer establishing an LDPoIPv6 session (instead of an LDPoIPv4 session) with a remote Dual-stack LSR by following the 'transport connection role' determination logic insectionSection 6.1.1. Additionally, to ensure the above preference in the caseof Dual- stackwhere Dual-stack LDPbeingis enabled on an interface, it would be desirable that IPv6 LDP Link Hellos are transmitted before IPv4 LDP Link Hellos, particularly when an interface is coming into service or being reconfigured. 6.1.1.DeterminingDual-Stack: Transportconnection RolesConnection Preference and Role of an LSR Section 2.5.2 of [RFC5036] specifies the rules for determining active/passive roles in setting up a TCP connection. These rules are clear foraSingle-stackLDP,LDP but not foraDual-stack LDP, in which an LSR may assume different roles for different address families, causing the LDP session to not get established. To ensure a deterministic transport connection (active/passive) role in the case of Dual-stack LDP, this document specifies that theDual- stackDual-stack LSR conveys its transport connection preference in every LDP Hello message. This preference is encoded in a new TLV, namedDual- stack capabilitythe "Dual-Stack capability" TLV, as defined below: 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |1|0|Dual-stackDual-Stack capability | Length |+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |TR | Reserved | MBZ |+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Figure5 Dual-stack capability5: Dual-Stack Capability TLV Where: U and F bits: 1 and 0 (as specified byRFC5036) Dual-stack[RFC5036]) Dual-Stack capability: TLV code point(to be assigned by IANA). TR,(Ox0701) TR: Transport ConnectionPreference.Preference This document defines the following2two values: 0100: LDPoIPv4 connection 0110: LDPoIPv6 connection (default) Reserved This field is reserved. It MUST be set to zero on transmission and ignored on receipt. A Dual-stack LSR(i.e.(i.e., an LSR supporting Dual-stack LDP for a peer) MUST include"Dual-stack capability"the Dual-Stack capability TLV in all of its LDPHellos,Hellos and MUST set the "TR" field to announce its preference for either an LDPoIPv4 or LDPoIPv6 transport connection for that peer. The default preference is LDPoIPv6. A Dual-stack LSR MUST always check for the presence of"Dual-stack capability"the Dual-Stack capability TLV in the receivedhello messages,Hello messages and take appropriateactionsaction, as follows: 1. If"Dual-stack capability"the Dual-Stack capability TLV is present and the remote preference does not matchwiththe local preference (or does not get recognized), then the LSR MUST discard thehelloHello message and log an error. If an LDP session was already in place, then the LSR MUST send a fatal Notification message with status code[Transportof 'Transport Connectionmismatch, IANA allocation TBD]Mismatch' (0x00000032) and reset the session. 2. If"Dual-stack capability"the Dual-Stack capability TLV ispresent,present and the remote preference matcheswiththe local preference, then: a) If TR=0100 (LDPoIPv4), then determine the active/passive roles for the TCP connection using an IPv4 transport address as defined insectionSection 2.5.2 of RFC 5036. b) If TR=0110 (LDPoIPv6), then determine the active/passive roles for the TCP connection by using an IPv6 transport address as defined insectionSection 2.5.2 of RFC 5036. 3. If"Dual-stack capability"the Dual-Stack capability TLV is NOTpresent,present and a)Onlyonly IPv4hellosHellos are received, then the neighbor is deemed as a legacy IPv4-only LSR (supporting Single-stackLDP),LDP); hence, an LDPoIPv4 session SHOULD be established (similar to that of 2a above). However, if IPv6hellosHellos are also received at any time during the life of the session from that neighbor, then the neighbor is deemed as anon-compliantnoncompliant Dual-stack LSR (similar to that of 3c below), resulting in any established LDPoIPv4 session being reset and a fatal Notification message being sent (with status code of 'Dual-StackNon-Compliance', IANA allocation TBD).Noncompliance', 0x00000033). b)Onlyonly IPv6hellosHellos are received, then the neighbor is deemed as an IPv6-only LSR (supporting Single-stack LDP) and an LDPoIPv6 session SHOULD be established (similar to that of 2b above). However, if IPv4hellosHellos are also received at any time during the life of the session from that neighbor, then the neighbor is deemed as anon-compliantnoncompliant Dual-stack LSR (similar to that of 3c below), resulting in any established LDPoIPv6 session being reset and a fatal Notification message being sent (with status code of 'Dual-StackNon-Compliance', IANA allocation TBD).Noncompliance', 0x00000033). c)Bothboth IPv4 and IPv6hellosHellos are received, then the neighbor is deemed as anon-compliantnoncompliant Dual-stackneighbor,neighbor and is not allowed to have any LDP session. A Notification message should be sent (with status code of 'Dual-StackNon-Compliance', IANA allocation TBD).Noncompliance', 0x00000033). A Dual-stack LSR MUST convey the same transport connection preference ("TR" field value) in all (link and targeted) Hellos that advertise the same label space to the same peer and/or on the same interface. This ensures that two LSRs linked by multiple Hello adjacencies using the same label spaces play the same connection establishment role for each adjacency. A Dual-stack LSR MUST followsectionSection 2.5.5 ofRFC5036[RFC5036] and check for matching Hello messages from the peer (either all Hellos also include theDual-stackDual-Stack capability (with the same TR value) or none do). A Single-stack LSRdodoes not need to use theDual-stackDual-Stack capability inhelloHello messages and SHOULD ignore thiscapability,capability if received. An implementation may provide an option to favor one AFI(IPv4, say)(say, IPv4) over another AFI(IPv6, say)(say, IPv6) for the TCP transport connection, so as to use the favored IP version for the LDPsession,session and force deterministic active/passive roles.Note -Note: An alternative to this newCapabilitycapability TLV could be a new Flag value in an LDP Hellomessage,message; however, itwill getwould be used even inaSingle-stack IPv6 LDP networks and linger on forever, even though Dual-stack will not. Hence, the idea of this alternativeishas been discarded. 6.2. LDPSessionsSession Maintenance This document specifies that two LSRs maintain a single LDPsessionsession, regardless of the number of Link orTargetedtargeted Hello adjacencies between them, as described insectionSection 6.1. This is independent of whether: - they are connected via a Dual-stackLDP enabledLDP-enabled interface(s) or via two (or more) Single-stackLDP enabledLDP-enabled interfaces; - a Single-stackLDP enabledLDP-enabled interface is converted to a Dual-stackLDP enabledLDP-enabled interface(e.g. figure(see Figure 1) on either LSR; - an additional Single-stack or Dual-stackLDP enabledLDP-enabled interface is added or removed between two LSRs(e.g. figure(see Figure 2). If the lasthelloHello adjacency for a given address family goes down(e.g.(e.g., due to Dual-stackLDP enabledLDP-enabled interfaces being converted intoaSingle-stackLDP enabledLDP-enabled interfaces on oneLSR etc.),LSR) and that address family is the same as the one used in the transport connection, then the transport connection (LDP session) MUST be reset. Otherwise, the LDP session MUST stay intact. If the LDP session is torn down for whatever reason (LDP disabled for the corresponding transport,helloHello adjacency expiry, preferencemismatchmismatch, etc.), then the LSRs SHOULD initiateestablishingthe establishment of a new LDP session as per the procedures described insectionSection 6.1 of this document. 7. Binding Distribution LSRs by definition can be enabled for Dual-stack LDP globally and/or per peer so as to exchange the address and label bindings for both IPv4 and IPv6address-families,address families, independent of any LDPoIPv4 orLDPoIPV6LDPoIPv6 session between them. However, there might be some legacy LSRs that are fully compliant with RFC 5036compliantforIPv4,IPv4 butnon-compliantare noncompliant for IPv6(say, section(for example, see Section 3.5.5.1 of RFC 5036), causing them to reset the session upon receiving IPv6 address bindings or IPv6 FEC (Prefix) label bindings from a peer compliant with this document. This is somewhat undesirable, as clarified furtherAppendixin Appendices A.1 and A.2. To help maintain backward compatibility(i.e.(i.e., accommodate IPv4-only LDP implementations that may not be compliant with RFC5036 section5036, Section 3.5.5.1), this specification requires that an LSR MUST NOT send any IPv6 bindings to a peer if the peer has been determinedasto be a legacy LSR. The'Dual-stack capability'Dual-Stack capability TLV, which is defined insectionSection 6.1.1, is also used to determineifwhether or not a peer is a legacy (IPv4-onlySingle- stack) LSR or not.Single-stack) LSR. 7.1. Address Distribution An LSR MUST NOT advertise (viaADDRESSan Address message) any IPv4-mapped IPv6 addresses(defined(as defined insectionSection 2.5.5.2 of[RFC4291]),[RFC4291]) and MUST ignore suchaddresses,addresses if ever received. Please see Appendix A.3. If an LSR is enabled with Single-stack LDP for any peer, then it MUST advertise (viaADDRESSan Address message) its local IP addresses as per the enabled address family to thatpeer,peer and process received Address messages containing IP addresses as per the enabled address family from that peer. If an LSR is enabled with Dual-stack LDP for a peer and 1.Is NOT able todoes not find theDual-stackDual-Stack capability TLV in the incoming IPv4 LDPhelloHello messages from that peer, then the LSR MUST NOT advertise its local IPv6Addressesaddresses to the peer. 2.Is able to findfinds theDual-stackDual-Stack capability TLV in the incoming IPv4 (or IPv6) LDP Hello messages from that peer, then it MUST advertise (viaADDRESSan Address message) its local IPv4 and IPv6 addresses to that peer. 3.Is NOT able todoes not find theDual-stackDual-Stack capability TLV in the incoming IPv6 LDP Hello messages, then it MUST advertise (viaADDRESSan Address message) only its local IPv6 addresses to that peer. This last point helps to maintain forward compatibility (no need to require this TLV in the case of IPv6 Single-stack LDP). 7.2. Label Distribution An LSR MUST NOT allocate and MUST NOT advertiseFEC-LabelFEC-label bindings for link-local or IPv4-mapped IPv6 addresses (defined insectionSection 2.5.5.2 of [RFC4291]), and it MUST ignore suchbindings,bindings if ever received. Please see Appendix A.3. If an LSR is enabled with Single-stack LDP for any peer, then it MUST advertise (via a Label Mapping message)FEC-LabelFEC-label bindings for the enabled address family to thatpeer,peer and process receivedFEC- LabelFEC-label bindings for the enabled address family from that peer. If an LSR is enabled with Dual-stack LDP for a peer and 1.Is NOT able todoes not find theDual-stackDual-Stack capability TLV in the incoming IPv4 LDPhelloHello messages from that peer, then the LSR MUST NOT advertise IPv6 FEC-label bindings to the peer (even if IP capability negotiation for the IPv6 address family was done). 2.Is able to findfinds theDual-stackDual-Stack capability TLV in the incoming IPv4 (or IPv6) LDP Hello messages from that peer, then it MUST advertiseFEC-LabelFEC-label bindings for both IPv4 and IPv6 address families to that peer. 3.Is NOT able to finddoes not find theDual-stackDual-Stack capability TLV in the incoming IPv6 LDP Hello messages, then it MUST advertiseFEC-LabelFEC-label bindings for IPv6 address families to that peer. This last point helps to maintain forward compatibility (no need to require this TLV for IPv6 Single-stack LDP). An LSR MAY further constrain the advertisement of FEC-label bindings for a particular address family by negotiating the IPCapabilitycapability for a given address family, as specified in[IPPWCap] document.[RFC7473]. This allows an LSR pair to neither advertise nor receive the undesired FEC-label bindings on aper address familyper-address-family basis to a peer. If an LSR is configured to change an interface or peer fromSingle- stackSingle-stack LDP to Dual-stack LDP, then an LSR SHOULD use Typed Wildcard FEC procedures [RFC5918] to request the label bindings for the enabled address family. This helps to relearn the label bindings that may have been discardedbeforebefore, without resetting the session. 8. LDP Identifiers and DuplicateNext HopNext-Hop AddressesRFC5036 sectionRFC 5036, Section 2.7 specifies the logic for mapping the IP routingnext-hopnext hop (of a given FEC) to an LDP peer so as to find the correct label entry for that FEC. The logic involves using the IP routing next-hop address as an index into the (peerAddress)address) database (which is populated by the Address message containing a mapping between each peer's local addresses and its LDP Identifier) to determine the LDP peer. However, this logic is insufficient to deal with duplicate IPv6 (link-local) next-hop addresses used by two or more peers. The reason is that all interior IPv6 routing protocols (can) uselink- locallink-local IPv6 addresses as the IP routingnext-hops,next hops, and'IPv6"IP Version 6 AddressingArchitecture [RFC4291]'Architecture" [RFC4291] allows a link-local IPv6 address to be used on more than onelinks.link. Hence, this logic is extended by this specification to use not only the IP routing next-hopaddress,address but also the IP routing next-hop interface to uniquely determine the LDP peer(s). The next-hop address-based LDP peer mapping is to be done through the LDP peer address database (populated by Address messages received from the LDP peers), whereas next-hop interface-based LDP peer mapping is to be done through the LDPhelloHello adjacency/interface database (populated byhelloHello messages received from the LDP peers). This extension solves the problem of two or more peers using the same link-local IPv6 address (in other words, duplicate peer addresses) as the IP routingnext-hops.next hops. Lastly, for better scale and optimization, an LSR may advertise only the link-local IPv6 addresses in the Address message, assuming that the peer uses only the link-local IPv6 addresses as static and/or dynamic IP routingnext-hops.next hops. 9. LDP TTL Security This documentrecommends enablingmandates the use of the Generalized TTL Security Mechanism (GTSM) [RFC6720] forLDP, as specified in [RFC6720],LDP Link Hello packets over IPv6 (see Section 5.1). This document further recommends enabling GTSM for the LDP/TCP transport connection over IPv6(i.e.(i.e., LDPoIPv6).TheThis GTSM inclusion is intended to automatically protect IPv6 LDP peeringsessionsessions from off-link attacks. [RFC6720] allows for the implementation to statically(configuration)(via configuration) and/or dynamically override the default behavior (enable/disable GTSM) on a per-peer basis. Sucha configurationan option could be set on either LSR in a peering session (since GTSM negotiation would ultimately disable GTSM between the LSR and its peer(s)). LDP Link Hello packets MUST have their IPv6 Hop Limit set to255,255 and be checked for the same upon receipt before any further processing, as persectionSection 3 of [RFC5082]. 10. IANA Considerations This document defines a new optional parameter for the LDP HelloMessagemessage and two new status codes for the LDP NotificationMessage.message. The'Dual-Stack capability'"Dual-Stack capability" parameterrequireshas been assigned a code point (0x0701) from theTLV"TLV Type NameSpace.Space" registry. IANAis requested tohas allocatedathis code point from the IETF Consensus range 0x0700-0x07ff for the'Dual-Stack capability'Dual-Stack capability TLV. The 'Transport Connection Mismatch' status coderequireshas been assigned a code point (0x00000032) from theStatus"Status Code NameSpace.Space" registry. IANAis requested to allocate ahas allocated this code point from the IETF Consensus range andmarkmarked the E bit column with a '1'. The 'Dual-StackNon-Compliance'Noncompliance' status coderequireshas been assigned a code point (0x00000033) from theStatus"Status Code NameSpace.Space" registry. IANAis requested to allocate ahas allocated this code point from the IETF Consensus range andmarkmarked the E bit column with a '1'. 11. Security Considerations The extensions defined in this document only clarify the behavior ofLDP,LDP; they do not define any new protocol procedures. Hence, this document does not add any new security issues to LDP. While the security issues relevant forthe[RFC5036] are relevant for this document as well, this document reduces the chances ofoff- linkoff-link attacks when using an IPv6 transport connection by including the use of GTSM procedures [RFC5082]. Please seesectionSection 9 for LDP TTL Security details. Moreover, this document allows the use of IPsec [RFC4301] for IPv6protection,protection; hence, LDP can benefit from the additional security as specified in [RFC7321] as well as [RFC5920]. 12.Acknowledgments We acknowledge the authors of [RFC5036], since some text in this document is borrowed from [RFC5036]. Thanks to Bob Thomas for providing critical feedback to improve this document early on. Many thanks to Eric Rosen, Lizhong Jin, Bin Mo, Mach Chen, Shane Amante, Pranjal Dutta, Mustapha Aissaoui, Matthew Bocci, Mark Tinka, Tom Petch, Kishore Tiruveedhula, Manoj Dutta, Vividh Siddha, Qin Wu, Simon Perreault, Brian E Carpenter, Santosh Esale, Danial Johari and Loa Andersson for thoroughly reviewing this document, and providing insightful comments and multiple improvements. This document was prepared using 2-Word-v2.0.template.dot. 13. Additional Contributors The following individuals contributed to this document: Kamran Raza Cisco Systems, Inc. 2000 Innovation Drive Kanata, ON K2K-3E8, Canada Email: skraza@cisco.com Nagendra Kumar Cisco Systems, Inc. SEZ Unit, Cessna Business Park, Bangalore, KT, India Email: naikumar@cisco.com Andre Pelletier Cisco Systems, Inc. 2000 Innovation Drive Kanata, ON K2K-3E8, Canada Email: apelleti@cisco.com 14.References14.1.12.1. Normative References [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, March1997.1997, <http://www.rfc-editor.org/info/rfc2119>. [RFC4291] Hinden, R. and S. Deering,"Internet Protocol"IP Version 6(IPv6)Addressing Architecture", RFC 4291, DOI 10.17487/RFC4291, February2006.2006, <http://www.rfc-editor.org/info/rfc4291>. [RFC5036] Andersson, L., Ed., Minei, I., Ed., and B. Thomas,B.,Ed., "LDP Specification", RFC 5036, DOI 10.17487/RFC5036, October2007.2007, <http://www.rfc-editor.org/info/rfc5036>. [RFC5082]Pignataro, C.,Gill, V., Heasley, J., Meyer, D.,andSavola, P., Ed., and C. Pignataro, "The Generalized TTL Security Mechanism (GTSM)", RFC 5082, DOI 10.17487/RFC5082, October2007.2007, <http://www.rfc-editor.org/info/rfc5082>. [RFC5918] Asati, R., Minei, I., and B. Thomas,B.,"Label Distribution Protocol (LDP) 'TypedWildcardWildcard' Forward Equivalence Class (FEC)", RFC 5918,October 2010. 14.2.DOI 10.17487/RFC5918, August 2010, <http://www.rfc-editor.org/info/rfc5918>. 12.2. Informative References[RFC4301][RFC4038] Shin, M-K., Ed., Hong, Y-G., Hagino, J., Savola, P., and E. Castro, "Application Aspects of IPv6 Transition", RFC 4038, DOI 10.17487/RFC4038, March 2005, <http://www.rfc-editor.org/info/rfc4038>. [RFC4301] Kent, S. and K. Seo, "Security Architectureandfor the Internet Protocol", RFC 4301, DOI 10.17487/RFC4301, December2005. [RFC7321] Manral, V., "Cryptographic Algorithm Implementation Requirements for Encapsulating Security Payload (ESP) and Authentication Header (AH)", RFC 7321, April 2007. [RFC5920] Fang, L., "Security Framework for MPLS and GMPLS Networks", RFC 5920, July 2010. [RFC4798] De Clercq, et al., "Connecting IPv6 Islands over IPv4 MPLS Using IPv6 Provider Edge Routers (6PE)", RFC 4798, February 2007. [IPPWCap] Raza, K., "LDP IP and PW Capability", draft-ietf-mpls-ldp- ip-pw-capability, October 2014.2005, <http://www.rfc-editor.org/info/rfc4301>. [RFC5340] Coltun, R., Ferguson, D., Moy, J., and A. Lindem, "OSPF for IPv6", RFC 5340, DOI 10.17487/RFC5340, July2008.2008, <http://www.rfc-editor.org/info/rfc5340>. [RFC5920] Fang, L., Ed., "Security Framework for MPLS and GMPLS Networks", RFC 5920, DOI 10.17487/RFC5920, July 2010, <http://www.rfc-editor.org/info/rfc5920>. [RFC6286]E.Chen, E. and J. Yuan, "Autonomous-System-Wide Unique BGP Identifier for BGP-4", RFC 6286, DOI 10.17487/RFC6286, June2011.2011, <http://www.rfc-editor.org/info/rfc6286>. [RFC6720] Pignataro, C. and R. Asati,and C. Pignataro,"The Generalized TTL Security Mechanism (GTSM) for the Label Distribution Protocol (LDP)", RFC 6720, DOI 10.17487/RFC6720, August2012. [RFC4038] M-K. Shin, Y-G. Hong, J. Hagino,2012, <http://www.rfc-editor.org/info/rfc6720>. [RFC7321] McGrew, D. and P.Savola,Hoffman, "Cryptographic Algorithm Implementation Requirements andE. M. Castro, "Application Aspects of IPv6 Transition",Usage Guidance for Encapsulating Security Payload (ESP) and Authentication Header (AH)", RFC4038, March 2005.7321, DOI 10.17487/RFC7321, August 2014, <http://www.rfc-editor.org/info/rfc7321>. [RFC7439]W.George, W., Ed., and C. Pignataro, Ed., "Gap Analysis for Operating IPv6-Only MPLS Networks", RFC 7439, DOI 10.17487/RFC7439, January2015.2015, <http://www.rfc-editor.org/info/rfc7439>. [RFC7473] Raza, K. and S. Boutros, "Controlling State Advertisements of Non-negotiated LDP Applications", RFC 7473, DOI 10.17487/RFC7473, March 2015, <http://www.rfc-editor.org/info/rfc7473>. Appendix A. Additional Considerations A.1. LDPv6 and LDPv4 Interoperability Safety Net It is not safe to assume thatRFC5036 compliantimplementations compliant with RFC 5036 have supported the handling of an IPv6 address family (IPv6FEC label)FEC-label) in a Label Mapping message all along. If a router upgradedwithper this specification advertised both IPv4 and IPv6 FECs in the samelabel mappingLabel Mapping message, then an IPv4-only peer (not knowing how to process such a message) may abort processing the entirelabel mappingLabel Mapping message (thereby discarding even the IPv4label FECs),FEC-labels), as perthe sectionSection 3.4.1.1 ofRFC5036.[RFC5036]. This would result in LDPv6to bebeing somewhat undeployable in existing production networks.The change proposed in sectionSection 7 of this document provides a good safety net and makes LDPv6 incrementally deployable without making any such assumption on the routers' support for IPv6 FEC processing in current production networks. A.2. AccommodatingNon-RFC5036-compliant implementationsImplementations Not Compliant with RFC 5036 It is not safe to assume that implementations have beenRFC5036[RFC5036] compliant in gracefully handling an IPv6 address family (IPv6 Address List TLV) in an Address message all along. If a router upgradedwithper this specification advertised IPv6 addresses (with or without IPv4 addresses) in an Address message, then an IPv4-only peer (not knowing how to process such a message) may not followsectionSection 3.5.5.1 ofRFC5036,[RFC5036] and may tear down the LDP session. This would result in LDPv6to bebeing somewhat undeployable in existing production networks.The changes proposed in sectionSections 6 and 7 of this documentprovidesprovide a good safety net andmakesmake LDPv6 incrementally deployable without making any such assumption on the routers' support for IPv6 FEC processing in current production networks. A.3. Why prohibit IPv4-mapped IPv6 addresses inLDPLDP? Per discussion with the 6MAN and V6OPS working groups, the overwhelming consensus was to not promote IPv4-mapped IPv6 addressesappearappearing in the routing table, as well as in LDP (address and label) databases. Also,[RFC4038] section[RFC4038], Section 4.2 suggests that IPv4-mappedIPv6 addressedIPv6-addressed packets should never appear on the wire. A.4. Why a 32-bit value even for the IPv6 LDP RouterIDId? The first four octets of the LDPidentifier,Identifier, the 32-bit LSR Id(e.g. (i.e.(i.e., LDPRouterrouter Id), identify the LSR andisprovide a globally unique value within the MPLSnetwork. This isnetwork, regardless of the address family used for the LDP session. Please note that the 32-bit LSR Id value would not map to anyIPv4-IPv4 address in anIPv6 onlyIPv6-only LSR (i.e.,single stack),Single-stack), nor would there be an expectation of it being IProutable, nor DNS-resolvable.routable or DNS resolvable. In IPv4 deployments, the LSR Id is typically derived from an IPv4 address, generally assigned to a loopback interface. InIPv6 onlyIPv6-only deployments, this 32-bit LSR Id must be derived by some other means that guarantees global uniqueness within the MPLS network, similar to that of the BGP Identifier [RFC6286] and the OSPF routerIDId [RFC5340]. This document reserves 0.0.0.0 as the LSRId,Id and prohibits its usage with IPv6, in line with the OSPF router Id in OSPF version 3 [RFC5340].Author'sAcknowledgments We acknowledge the authors of [RFC5036], since some text in this document is borrowed from [RFC5036]. Thanks to Bob Thomas for providing critical feedback to improve this document early on. Many thanks to Eric Rosen, Lizhong Jin, Bin Mo, Mach Chen, Shane Amante, Pranjal Dutta, Mustapha Aissaoui, Matthew Bocci, Mark Tinka, Tom Petch, Kishore Tiruveedhula, Manoj Dutta, Vividh Siddha, Qin Wu, Simon Perreault, Brian E. Carpenter, Santosh Esale, Danial Johari, and Loa Andersson for thoroughly reviewing this document and for providing insightful comments and multiple improvements. Contributors The following individuals contributed to this document: Nagendra Kumar Cisco Systems, Inc. 7200 Kit Creek Road Research Triangle Park, NC 27709, United States EMail: naikumar@cisco.com Andre Pelletier Cisco Systems, Inc. 2000 Innovation Drive Kanata, ON K2K-3E8, Canada EMail: apelleti@cisco.com Authors' Addresses Rajiv Asati Cisco Systems, Inc. 7025 Kit Creek Road Research Triangle Park, NC 27709-4987Email:United States EMail: rajiva@cisco.comVishwas Manral Hewlet-Packard,Carlos Pignataro Cisco Systems, Inc.19111 Pruneridge Ave., Cupertino, CA, 95014 Phone: 408-447-1497 Email: vishwas@ionosnetworks.com7200 Kit Creek Road Research Triangle Park, NC 27709-4987 United States EMail: cpignata@cisco.com Kamran Raza Cisco Systems,Inc.,Inc. 2000 InnovationDrive,Drive Ottawa, ONK2K-3E8, Canada. E-mail:K2K-3E8 Canada EMail: skraza@cisco.com Vishwas Manral Ionos Networks 4100 Moorpark Ave., Ste. #122 San Jose, CA 95117 United States Phone: +1 408 447 1497 EMail: vishwas@ionosnetworks.com Rajiv Papneja Huawei Technologies 2330 Central Expressway Santa Clara, CA 95050 United States Phone: +1 571 926 8593 EMail: rajiv.papneja@huawei.comCarlos Pignataro Cisco Systems, Inc. 7200 Kit Creek Road Research Triangle Park, NC 27709-4987 Email: cpignata@cisco.com