<?xml version="1.0" encoding="US-ASCII"?>
<!-- This template is for creating an Internet Draft using xml2rfc,
    which is available here: http://xml.resource.org. -->
<!DOCTYPE rfc SYSTEM "rfc2629.dtd" [
<!-- One method to get references from the online citation libraries.
    There has to be one entity for each item to be referenced. 
    An alternate method (rfc include) is described in the references. -->
<!ENTITY RFC2119 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.2119.xml">
<!ENTITY RFC2629 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.2629.xml">
<!ENTITY RFC3552 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.3552.xml">
<!ENTITY I-D.narten-iana-considerations-rfc2434bis SYSTEM "http://xml.resource.org/public/rfc/bibxml3/reference.I-D.narten-iana-considerations-rfc2434bis.xml">
]>
<?xml-stylesheet type='text/xsl' href='rfc2629.xslt' ?>
<!-- used by XSLT processors -->
<!-- For a complete list and description of processing instructions (PIs), 
    please see http://xml.resource.org/authoring/README.html. -->
<!-- Below are generally applicable Processing Instructions (PIs) that most I-Ds might want to use.
    (Here they are set differently than their defaults in xml2rfc v1.32) -->
<?rfc strict="yes" ?>
<!-- give errors regarding ID-nits and DTD validation -->
<!-- control the table of contents (ToC) -->
<?rfc toc="yes"?>
<!-- generate a ToC -->
<?rfc tocdepth="4"?>
<!-- the number of levels of subsections in ToC. default: 3 -->
<!-- control references -->
<?rfc symrefs="yes"?>
<!-- use symbolic references tags, i.e, [RFC2119] instead of [1] -->
<?rfc sortrefs="yes" ?>
<!-- sort the reference entries alphabetically -->
<!-- control vertical white space 
    (using these PIs as follows is recommended by the RFC Editor) -->
<?rfc compact="yes" ?>
<!-- do not start each main section on a new page -->
<?rfc subcompact="no" ?>
<!-- keep one blank line between list items -->
<!-- end of list of popular I-D processing instructions -->
<rfc category="std" docName="draft-tantsura-ospf-segment-routing-msd-01"
	ipr="trust200902">  

  <front>
    <title abbrev="">Signaling  MSD (Maximum SID Depth) using OSPF</title>

    <author fullname="Jeff Tantsura" initials="J.T." surname="Tantsura">
      <organization>Individual</organization>
      <address>
	<email>jefftant.ietf@gmail.com</email>
      </address>
    </author>

    <author fullname="Uma Chunduri" initials="U.C." surname="Chunduri">
      <organization>Individual</organization>
      <address>
      <email>uma.chunduri@gmail.com</email>
      </address>
    </author>

    <date day="26" month="September" year="2016" />

    <area>Routing</area>

    <workgroup>OSPF Working Group</workgroup>

    <keyword>Internet-Draft</keyword>

    <keyword>BGP-LS</keyword>
    
    <keyword>SID</keyword>
   
    <keyword>MSD </keyword>

    <keyword>OSPF</keyword>

    <abstract>
	    <t>This document proposes a way to expose Maximum SID Depth (MSD) supported by a node at node and/or link level
	    by an OSPF Router. In a Segment Routing (SR) enabled network a centralized controller that programs SR tunnels
	    at the head-end node needs to know the MSD information at node level and/or link level to push the label stack of an appropriate depth .
            Here the term OSPF means both OSPFv2 and  OSPFv3.</t>
    </abstract>
  </front>

  <middle>
	  <section title="Introduction">
			 
 		  <t>When Segment Routing tunnels are computed by a centralized
                  controller, it is crucial that the controller knows
		  the MSD "Maximum SID Depth" of the node or link SR tunnel exits over, so it doesn't
                  download a path with SID (label stack) of a depth more than the node
                  or link used is capable of imposing. This document describes how
                  to use OSPF to expose the MSD of the node or link to a
		  centralized controller.</t>

	           <t>PCEP SR extensions <xref target="I-D.ietf-pce-segment-routing"/> has defined MSD, 
		      to signal  in SR PCE Capability TLV, METRIC Object. However, If PCEP is not supported 
		      by a node (head-end of the SR tunnel) and controller does not participate in IGP routing 
		      it has no way to learn the MSD of the node or link configured. BGP-LS <xref target="RFC7752"/> defines a  
		      way to expose topology and associated different attributes, capabilities of the nodes in that topology to a centralized
		      controller and MSD has been defined in <xref target="I-D.tantsura-bgp-ls-segment-routing-msd"/>. For this information 
		      to be advertised by BGP for the all nodes and links of the network, where this is provisioned, OSPF module should have this information in the LSDB.</t>
		  
	     <t><xref target="I-D.ietf-ospf-mpls-elc"/> defines, RLSDC  which indicates how many labels a node can read to take a decision to insert an Entropy Label (EL) 
		     and is different than how many labels a node can push as defined by MSD in this draft.</t>


	     <section title="Conventions used in this document">
   <section title="Terminology">

    <t>BGP-LS: Distribution of Link-State and TE
	    Information using Border Gateway Protocol </t>

    <t>OSPF: Open Shortest Path First</t>
	    
    <t>MSD: Maximum SID Depth </t>

   <t> PCC:  Path Computation Client </t>

   <t> PCE:  Path Computation Element </t>

   <t> PCEP:  Path Computation Element Protocol </t>

   <t> SID:  Segment Identifier </t>

   <t> SR:  Segment routing </t>
   
   </section>
	     </section>
	     
      <section title="Requirements Language">
        <t>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 <xref
        target="RFC2119">RFC 2119</xref>.</t>
      </section>
    </section>

    <section anchor="Abbreviations_Terminology" title="Terminology">
      <t>This memo makes use of the terms defined in <xref
      target="RFC4970"/>.</t>
    </section>

    <section anchor="NODE_LEVEL" title="Node MSD TLV">
      <t>A new TLV within the body of the OSPF RI Opaque LSA, called
      Node MSD TLV is defined to carry the provisioned SID depth 
      of the router originating the RI LSA. Node MSD is the lowest MSD supported 
      by the node.
      </t>
      <t>The Type  (2 bytes) of this TLV is TBD.</t>
      <t>    Length is 2 bytes, and </t>
      <t>    the Value field contains MSD of the router originating the RI LSA. Node MSD 
	      is a number in the range of 0-254. 0 represents lack of the ability to push MSD 
	      of any depth; any other value represents that of the node. This value SHOULD 
	      represent the lowest value supported by node.</t>
      <t>This TLV is applicable to OSPFv2 and to 
      OSPFv3  <xref target="RFC5838"/> and is optional. The scope of the advertisement is specific to the deployment. 
      </t>
    </section>

    <section anchor="LINK_LEVEL" title="LINK MSD sub-TLV">
      <t>A new sub-TLV  called Link MSD sub-TLV is defined to carry the provisioned SID depth 
      of the interface associated with the link. </t>
      <t>The Type (2 bytes) of this TLV is TBD.</t>
      <t>    Length is 2 bytes, and </t>
      <t>    the Value field contains Link MSD of the router originating the corresponding LSA as specified for OSPFv3 and OSPFv3. 
	      Link MSD is a number in the range of 0-254. 0 represents lack of the ability to push MSD 
	      of any depth; any other value represents that of the particular link MSD value. </t>

	    <t>For OSPFv2, the Link level MSD value is advertised as an optional Sub-TLV  
		    of OSPFv2 Extended Link TLV as defined in <xref target="RFC7684"/>.</t> 
	    <t>For OSPFv3, the Link level MSD value is advertised as an optional Sub-TLV of the Router-Link TLV as
		    defined in <xref target="I-D.ietf-ospf-ospfv3-lsa-extend"/>.
	    </t>
    </section>
    <section anchor="Acknowledgements" title="Acknowledgements">
	    <t>TBD </t>

      <!---->
    </section>

    <section anchor="IANA" title="IANA Considerations">
      <t>This document includes a request to IANA to allocate TLV type
	      codes for the new TLV proposed in  <xref target="NODE_LEVEL"> </xref> 
	       of this document from OSPF Router 
	       Information (RI) TLVs Registry as defined by <xref target="RFC4970"/>.
	       Also for link MSD,  we request IANA to allocate new sub-TLV codes  as proposed
	       in <xref target="LINK_LEVEL"> </xref> from OSPFv2 Extended Link Opaque LSAs Extended  Link TLV registry and 
	       from Router-Link TLV defined in OSPFv3 Extend-LSA Sub-TLV registry.
      </t>

      <!---->
    </section>

    <section anchor="Security" title="Security Considerations">
     <t>This document describes a mechanism for advertising Segment Routing SID depth supported at node and link level 
	     information through OSPF LSAs and does not introduce 
	     any new security issues.
     </t>

      <!---->
    </section>
  </middle>

  <back>
    <references title="Normative References">
      &RFC2119;

      <?rfc include="reference.RFC.4970"?>

      <!---->
    </references>

    <references title="Informative References">
      <?rfc include="reference.I-D.ietf-pce-segment-routing"?>
      <?rfc include="reference.I-D.tantsura-bgp-ls-segment-routing-msd"?>
      <?rfc include="reference.I-D.ietf-ospf-mpls-elc"?>
      <?rfc include="reference.I-D.ietf-ospf-ospfv3-lsa-extend"?>
      <?rfc include="reference.RFC.7752"?>
      <?rfc include="reference.RFC.5838"?>
      <?rfc include="reference.RFC.7684"?>
      <!---->
    </references>
  </back>
</rfc>
