OSPF Working Group | X. Xu, Ed. |
Internet-Draft | Huawei |
Intended status: Standards Track | B. Decraene, Ed. |
Expires: April 16, 2017 | Orange |
R. Raszuk | |
Bloomberg LP | |
U. Chunduri | |
L. Contreras | |
Telefonica I+D | |
L. Jalil | |
Verizon | |
October 13, 2016 |
Advertising Tunnelling Capability in OSPF
draft-ietf-ospf-encapsulation-cap-01
Some networks use tunnels for a variety of reasons. A large variety of tunnel types are defined and the ingress needs to select a type of tunnel which is supported by the egress. This document defines how to advertise egress tunnel capabilities in OSPF Router Information.
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 RFC 2119 [RFC2119].
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at http://datatracker.ietf.org/drafts/current/.
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any 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 April 16, 2017.
Copyright (c) 2016 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.
Some networks use tunnels for a variety of reasons, such as:
The ingress needs to select a type of tunnel which is supported by the egress. This document describes how to use OSPF Router Information to advertise the egress tunnelling capabilities of nodes. In this document, OSPF means both OSPFv2 and OSPFv3.
This memo makes use of the terms defined in [RFC7770].
Routers advertises their supported encapsulation type(s) by advertising a new TLV of the OSPF Router Information (RI) Opaque LSA [RFC7770], referred to as Encapsulation Capability TLV. This TLV is applicable to both OSPFv2 and OSPFv3. The Encapsulation Capability TLV SHOULD NOT appear more than once within a given OSPF Router Information (RI) Opaque LSA. The scope of the advertisement depends on the application but it is recommended that it SHOULD be domain- wide. The Type code of the Encapsulation Capability TLV is TBD1, the Length value is variable, and the Value field contains one or more Tunnel Encapsulation Type sub-TLVs. Each Encapsulation Type sub-TLVs indicates a particular encapsulation format that the advertising router supports.
The Tunnel Encapsulation Type sub-TLV is structured as follows:
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Tunnel Type (2 Octets) | Length (2 Octets) | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | Value | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Unknown types are to be ignored and skipped upon receipt.
The Tunnel Encapsulation Attribute sub-TLV is structured as as follows:
+-----------------------------------+ | Sub-TLV Type (1 Octet) | +-----------------------------------+ | Sub-TLV Length (1 Octet) | +-----------------------------------+ | Sub-TLV Value (Variable) | | | +-----------------------------------+
Any unknown sub-TLVs MUST be ignored and skipped. However, if the TLV is understood, the entire TLV MUST NOT be ignored just because it contains an unknown sub-TLV.
If a sub-TLV is erroneous, this specific Tunnel Encapsulation MUST be ignored and skipped. However, others Tunnel Encapsulations MUST be considered.
This sub-TLV has its format defined in [RFC5512] under the name Encapsulation sub-TLV.
This sub-TLV has its format defined in [RFC5512] under the name Protocol Type.
The value field carries the Network Address to be used as tunnel destination address.
If length is 4, the Address Family (AFI) is IPv4.
If length is 16, the Address Family (AFI) is IPv6.
The valued field is a 4 octets opaque unsigned integer.
The color value is user defined and configured locally on the routers. It may be used by the service providers to define policies.
This document requests IANA to allocate a new code point from registry OSPF Router Information (RI).
Value TLV Name Reference ----- ------------------------------------ ------------- TBD1 Tunnel Capabilities This document
Registry Name: IGP Tunnel Encapsulation Type. Value Name Reference ------- ------------------------------------------ ------------- 0 Reserved This document 1 L2TPv3 over IP This document 2 GRE This document 3 Transmit tunnel endpoint This document 4 IPsec in Tunnel-mode This document 5 IP in IP tunnel with IPsec Transport Mode This document 6 MPLS-in-IP tunnel with IPsec Transport Mode This document 7 IP in IP This document 8 VXLAN This document 9 NVGRE This document 10 MPLS This document 11 MPLS-in-GRE This document 12 VXLAN-GPE This document 13 MPLS-in-UDP This document 14 MPLS-in-UDP-with-DTLS This document 15 MPLS-in-L2TPv3 This document 16 GTP This document 17-250 Unassigned 251-254 Experimental This document 255 Reserved This document
This document requests IANA to create a new registry "IGP Tunnel Encapsulation Types" with the following registration procedure: [RFC5226].
This document requests IANA to create a new registry "IGP Tunnel Encapsulation Attribute Types" with the following registration procedure:
Registry Name: IGP Tunnel Encapsulation Attribute Types. Value Name Reference ------- ------------------------------------ ------------- 0 Reserved This document 1 Encapsulation parameters This document 2 Protocol This document 3 End Point This document 4 Color This document 5-250 Unassigned 251-254 Experimental This document 255 Reserved This document
Assignments of Encapsulation Attribute Types are via Standards Action [RFC5226].
Security considerations applicable to softwires can be found in the mesh framework [RFC5565]. In general, security issues of the tunnel protocols signaled through this IGP capability extension are inherited.
If a third party is able to modify any of the information that is used to form encapsulation headers, to choose a tunnel type, or to choose a particular tunnel for a particular payload type, user data packets may end up getting misrouted, misdelivered, and/or dropped.
Security considerations for the base OSPF protocol are covered in [RFC2328] and [RFC5340].
This document is partially inspired by [RFC5512].
The authors would like to thank Carlos Pignataro and Karsten Thomann for their valuable comments on this draft.