<?xml version='1.0' encoding='utf-8'?>
<!-- This template is for creating an Internet Draft using xml2rfc,
    which is available here: http://xml.resource.org. -->
<!DOCTYPE rfc SYSTEM "rfc2629-xhtml.ent">
<?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. -->
<rfc
      xmlns:xi="http://www.w3.org/2001/XInclude"
      category="info"
      docName="draft-kang-tcpm-subtype-capability-exchange-01"
      ipr="trust200902"
      obsoletes=""
      updates=""
      submissionType="IETF"
      xml:lang="en"
      tocInclude="true"
      tocDepth="4"
      symRefs="true"
      sortRefs="true"
      version="3">
  <!-- xml2rfc v2v3 conversion 2.38.1 -->
  <!-- category values: std, bcp, info, exp, and historic
    ipr values: trust200902, noModificationTrust200902, noDerivativesTrust200902,
       or pre5378Trust200902
    you can add the attributes updates="NNNN" and obsoletes="NNNN" 
    they will automatically be output with "(if approved)" -->

 <!-- ***** FRONT MATTER ***** -->

 <front>
    <!-- The abbreviated title is used in the page header - it is only necessary if the 
        full title is longer than 39 characters -->

   <title abbrev="Subtype-Cap Exchange">Subtype Capability Exchange During MPTCP Handshake</title>
    <seriesInfo name="Internet-Draft" value="draft-kang-tcpm-subtype-capability-exchange-01"/>
    <!-- add 'role="editor"' below for the editors if appropriate -->

   <!-- Another author who claims to be an editor -->	
	<author fullname="Jiao Kang" initials="J." surname="Kang">
      <organization>Huawei</organization>
      <address>
        <email>jiao_kang2022@163.com</email>
     </address>
    </author>
	
	<author fullname="Qiandeng Liang" initials="Q." surname="Liang">
      <organization>Huawei</organization>
      <address>
        <postal>
          <street>No. 207, Jiufeng 3rd Road, East Lake High-tech Development Zone</street>
          <city>Wuhan</city>
          <country>China</country>
        </postal>
        <email>liangqiandeng@huawei.com</email>
     </address>
    </author>
	
	<author fullname="Shangling Deng" initials="S." role="editor" surname="Deng">
      <organization>Huawei</organization>
      <address>
        <postal>
          <street>D2-03,Huawei Industrial Base</street>
          <city>Shenzhen</city>
          <country>China</country>
        </postal>
        <email>dengshangling@huawei.com</email>
     </address>
    </author>
	
    <date year="2022"/>
	
    <area>Transport Area</area>
    <workgroup>TCP Maintenance and Minor Extensions</workgroup>
    <keyword>mptcp</keyword>
	
   <abstract>
      <t>Multipath TCP provides the ability to simultaneously use multiple paths between peers. MPTCP protocol defines seven subtypes in MPTCP v0 <xref target="RFC6824" format="default"/> and ten subtypes in MPTCP v1 <xref target="RFC8684" format="default"/> to differentiate message types and implement some additional functions during a session. </t>
	  <t>This draft proposes an enhancement to support Subtype Capability Exchange during MPTCP connection establishment in order to improve elastic scalability of MPTCP protocol. It includes: 1) requirements for which this kind of capability exchange during handshake is important for a MPTCP session; 2) a typical flow for Subtype Capability Exchange between peers; 3) a feasible solution on protocol design is suggested.</t>
    </abstract>
  </front>
  <middle>
    <section numbered="true" toc="default">
      <name>Introduction</name>
      <section numbered="true" toc="default">
        <name>Requirements Language</name>
        <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" format="default">RFC 2119</xref>.</t>
      </section>
	  
	  <section numbered="true" toc="default">
       <name>Background</name>
	   <t>Table 1 lists all subtypes that have been specified in current MPTCP versions. Besides version negotiation, MPTCP peers can not interact with each other on the granularity of subtype capability. This feature may cause inflexible protocol extension. For example, if a new message type A is added in future extension, a higher version should be released to import it and a new subtype may need to be allocated. Another case is that if a sender does not know the subtypes supported by a receiver in a MPTCP session, as a result, invalid data packets may been sent from the sender during data transmission and the receiver will discard it which causes system overhead on receiver side.</t>
       <table anchor="table_subtypes_list" align="center" pn="table-1">
        <name slugifiedName="name-overview-subtypes">Overview MPTCP Subtypes</name>
        <thead>
          <tr>
            <th align="left" colspan="1" rowspan="1">Value</th>
            <th align="left" colspan="1" rowspan="1">Symbol</th>
            <th align="left" colspan="1" rowspan="1">Name</th>
            <th align="left" colspan="1" rowspan="1">MPTCPv0</th>
            <th align="left" colspan="1" rowspan="1">MPTCPv1</th>
          </tr>
        </thead>
        <tbody>
          <tr>
		    <td align="left" colspan="1" rowspan="1">0x0</td>
		    <td align="left" colspan="1" rowspan="1">MP_CAPABLE</td>
		    <td align="left" colspan="1" rowspan="1">Multipath Capable</td>
			<td align="left" colspan="1" rowspan="1">Supported</td>
			<td align="left" colspan="1" rowspan="1">Supported</td>
		  </tr>
		  
		  <tr>
		    <td align="left" colspan="1" rowspan="1">0x1</td>
			<td align="left" colspan="1" rowspan="1">MP_JOIN</td>
			<td align="left" colspan="1" rowspan="1">Join Connection</td>
			<td align="left" colspan="1" rowspan="1">Supported</td>
			<td align="left" colspan="1" rowspan="1">Supported</td>			
		  </tr>
		  <tr>
		    <td align="left" colspan="1" rowspan="1">0x2</td>
			<td align="left" colspan="1" rowspan="1">DSS</td>
			<td align="left" colspan="1" rowspan="1">Data Sequence Signal (Data ACK and Data Sequence Mapping)</td>
			<td align="left" colspan="1" rowspan="1">Supported</td>
			<td align="left" colspan="1" rowspan="1">Supported</td>
		  </tr>
		  
		  <tr>
		    <td align="left" colspan="1" rowspan="1">0x3</td>
			<td align="left" colspan="1" rowspan="1">ADD_ADDR</td>
			<td align="left" colspan="1" rowspan="1">Add Address</td>
			<td align="left" colspan="1" rowspan="1">Supported</td>
			<td align="left" colspan="1" rowspan="1">Supported</td>
		  </tr>
		  
		  <tr>
		    <td align="left" colspan="1" rowspan="1">0x4</td>
			<td align="left" colspan="1" rowspan="1">REMOVE_ADDR</td>
			<td align="left" colspan="1" rowspan="1">Remove Address</td>
			<td align="left" colspan="1" rowspan="1">Supported</td>
			<td align="left" colspan="1" rowspan="1">Supported</td>
		  </tr>
		  
		  <tr>
		    <td align="left" colspan="1" rowspan="1">0x5</td>
			<td align="left" colspan="1" rowspan="1">MP_PRIO</td>
			<td align="left" colspan="1" rowspan="1">Change Subflow Priority</td>
			<td align="left" colspan="1" rowspan="1">Supported</td>
			<td align="left" colspan="1" rowspan="1">Supported</td>
		  </tr>
		  
		  <tr>
		    <td align="left" colspan="1" rowspan="1">0x6</td>
			<td align="left" colspan="1" rowspan="1">MP_FAIL</td>
			<td align="left" colspan="1" rowspan="1">Fallback</td>
			<td align="left" colspan="1" rowspan="1">Supported</td>
			<td align="left" colspan="1" rowspan="1">Supported</td>
		  </tr>
		  
		  <tr>
		   <td align="left" colspan="1" rowspan="1">0x7</td>
		   <td align="left" colspan="1" rowspan="1">MP_FASTCLOSE</td>
		   <td align="left" colspan="1" rowspan="1">Fast Close</td>
		   <td align="left" colspan="1" rowspan="1">Supported</td>
		   <td align="left" colspan="1" rowspan="1">Supported</td>
		  </tr>
		  <tr>
            <td align="left" colspan="1" rowspan="1">0x8</td>
			<td align="left" colspan="1" rowspan="1">MP_TCPRST</td>
			<td align="left" colspan="1" rowspan="1">Subflow Reset</td>
		    <td align="left" colspan="1" rowspan="1">/</td>
			<td align="left" colspan="1" rowspan="1">Supported</td>
          </tr>
          <tr>
		    <td align="left" colspan="1" rowspan="1">0xf</td>
			<td align="left" colspan="1" rowspan="1">MP_EXPERIMENTAL</td>
            <td align="left" colspan="1" rowspan="1">Reserved for Private Use</td>
            <td align="left" colspan="1" rowspan="1">/</td>
            <td align="left" colspan="1" rowspan="1">Supported</td>			
          </tr>
        </tbody>
      </table>
			
	  <t>This document suggests a new function of Subtype Capability Exchange during MPTCP handshake in the scenario that MPTCP peers in a session support same MPTCP protocol version but with different subtype sets.</t>	
      </section>
 
    </section>
	
    <section anchor="typical_flow" numbered="true" toc="default">
      <name>One Typical Flow</name>
      <t>Figure 1 illustrates a typical flow for this Subtype Capability Exchange during MPTCP connection setup. The field of Subtype Capability is used to indicate whether these subtypes are supported by the sender, for example, Host A Subtype Capabilities indicates the status of the subtypes on Host A and Host B Subtype Capabilities indicates that on Host B. Through the transmission of this information between both parties, a sender can determine whether a message can be properly processed by its receiver and only send the message that can be supported by the receiver during data transmission.</t>
       <figure anchor="ref-mptcp-signaling" align="left" suppress-title="false" pn="figure-1">
        <name slugifiedName="name-mptcp-subtype-cap">MPTCP Subtype Capability Exchange</name>
        <artwork name="" type="" align="left" alt=""><![CDATA[
            Host A                                  Host B
     ------------------------                       ----------
     Address A1    Address A2                       Address B1
     ----------    ----------                       ----------
         |             |                                |
         |        SYN + Host A Subtype Capability       |
         |--------------------------------------------->|		 
         |                                        Determine and
         |                                    Cache the capabilities
         |                                          of Host A	 
         |<---------------------------------------------|
         |      SYN/ACK + Host B Subtype Capability     |
Determine and Cache the                                 | 
 capabilities of Host B                                 |
         |                         ACK                  |
         |--------------------------------------------->|
         |             |                                |
         |             |        SYN + MP_JOIN           |
         |             |------------------------------->|
         |             |<-------------------------------|
         |             |      SYN/ACK + MP_JOIN         |
         |             |                                |
         |             |        ACK + MP_JOIN           |
         |             |------------------------------->|
         |             |<-------------------------------|
         |             |             ACK                |
         |             |                                |
         |   Data Transmission(with subtype messages)   |
         |<-------------------------------------------->|
         |             |                                |
         |             | Data Transmission(with subtype |
         |             |<------------------------------>|
         |             |             messages)          |
         |             |                                |
]]></artwork>
      </figure>
	  <t>In practice, another possible implementation is as follows: after receiving the subtype capability information sent by Host A, Host B determines the common subtype sets supported by both parties, and returns this common subtype sets in the reponse. Host A caches this common subtype sets locally. In data transmission phase, Host A sends the specified subtype messages to Host B that are included in the common subtype sets. As an alternative solution, its protocol design on MPTCP will be considered and updated in later versions. </t>
    </section>
		
    <section numbered="true" toc="default">
      <name>Protocol Implementation</name>
      <t>This document describes one solution on the modifications to MPTCP protocol to support this mechanism.In this solution, MP_CAPABLE option is used and extended to add bits to carry subtype capabilities information. There should be other possible solutions that can be defined in subsequent discussions.</t>
      <section numbered="true" toc="default">
        <name>Carrying Subtype Capabilities in MP_CAPABLE Option</name>
        <t>In Figure 2, a 32-bit ”OptionSupported” is added to MP_CAPABLE option to indicate whether the subtypes are supported by the sender.</t>		
		<figure anchor="option-supported" align="left" suppress-title="false" pn="figure-2">
          <name slugifiedName="name-mptcp-option-format">OptionSupported Format</name>
          <artwork align="left" name="" type="" alt="">
                       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
  +---------------+---------------+-------+-------+---------------+
  |     Kind      |    Length     |Subtype|Version|A|B|C|D|E|F|G|H|
  +---------------+---------------+-------+-------+---------------+
  |                   Option Sender's Key (64 bits)               |
  |                      (if option Length &gt; 4)                |
  |                                                               |
  +---------------------------------------------------------------+
  |                  Option Receiver's Key (64 bits)              |
  |                      (if option Length &gt; 12)               |
  |                                                               |
  +-------------------------------+-------------------------------+
  |                    OptionSupported (32 bits)                  |
  +-------------------------------+-------------------------------+
  |  Data-Level Length (16 bits)  |  Checksum (16 bits, optional) |
  +-------------------------------+-------------------------------+ </artwork>
        </figure>

       <t>For MPTCP v1, ten subtypes has been defined and applied in practice. So the first 10-bits in OptionSupported field is used for indicating whether these subtypes is supported by sender. The order is listed below:</t>
       <t>0: MP_CAPABLE</t>
       <t>1: MP_JOIN</t>
       <t>2: DSS</t>
       <t>3: ADD_ADDR</t>
       <t>4: REMOVE_ADDR</t>
       <t>5: MP_PRIO</t>
       <t>6: MP_FAIL</t>
       <t>7: MP_FASTCLOSE</t>
       <t>9: MP_TCPRST</t>
       <t>10: MP_EXPERIMENTAL</t>
       <t>11~31: Reserved for Future Use</t>
       <t>Two values, that is 0 and 1, can be set to these bits in OptionSupported field. The value of 0 indicates that the sender does not support this subtype. The value of 1 indicates that the sender supports this subtype. </t>
      </section>
    </section>
    <!-- This PI places the pagebreak correctly (before the section title) in the text output. -->

   <section anchor="Security" numbered="true" toc="default">
      <name>Security Considerations</name>
      <t>To be added.</t>
   </section>
   
   <section anchor="IANA" numbered="true" toc="default">
      <name>IANA Considerations</name>
      <t>To be added.</t>
   </section>
  </middle>
  <!--  *****BACK MATTER ***** -->

 <back>

   <references>
      <name>References</name>
      <references>
        <name>Normative References</name>
		<reference anchor="RFC2119" target="https://www.rfc-editor.org/info/rfc2119" xml:base="https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.2119.xml">
          <front>
            <title>Key words for use in RFCs to Indicate Requirement Levels</title>
            <seriesInfo name="DOI" value="10.17487/RFC2119"/>
            <seriesInfo name="RFC" value="2119"/>
            <seriesInfo name="BCP" value="14"/>
            <author initials="S." surname="Bradner" fullname="S. Bradner">
              <organization/>
            </author>
            <date year="1997" month="March"/>
            <abstract>
              <t>In many standards track documents several words are used to signify the requirements in the specification.  These words are often capitalized. This document defines these words as they should be interpreted in IETF documents.  This document specifies an Internet Best Current Practices for the Internet Community, and requests discussion and suggestions for improvements.</t>
            </abstract>
          </front>
        </reference>
		<reference anchor="RFC0793" target="https://www.rfc-editor.org/info/rfc793" quoteTitle="true" derivedAnchor="RFC0793">
          <front>
            <title>Transmission Control Protocol</title>
            <seriesInfo name="STD" value="7"/>
            <seriesInfo name="RFC" value="793"/>
            <seriesInfo name="DOI" value="10.17487/RFC0793"/>
            <author initials="J." surname="Postel" fullname="J. Postel">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="1981" month="September"/>
          </front>
        </reference>
	    <reference anchor="RFC6824" target="https://www.rfc-editor.org/info/rfc6824" quoteTitle="true" derivedAnchor="RFC6824">
          <front>
            <title>TCP Extensions for Multipath Operation with Multiple Addresses</title>
            <seriesInfo name="RFC" value="6824"/>
            <seriesInfo name="DOI" value="10.17487/RFC6824"/>
            <author initials="A." surname="Ford" fullname="A. Ford">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="C." surname="Raiciu" fullname="C. Raiciu">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="M." surname="Handley" fullname="M. Handley">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="O." surname="Bonaventure" fullname="O. Bonaventure">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2013" month="January"/>
            <abstract>
              <t>TCP/IP communication is currently restricted to a single path per connection, yet multiple paths often exist between peers.  The simultaneous use of these multiple paths for a TCP/IP session would improve resource usage within the network and, thus, improve user experience through higher throughput and improved resilience to network failure.</t>
              <t>Multipath TCP provides the ability to simultaneously use multiple paths between peers.  This document presents a set of extensions to traditional TCP to support multipath operation.  The protocol offers the same type of service to applications as TCP (i.e., reliable bytestream), and it provides the components necessary to establish and use multiple TCP flows across potentially disjoint paths.  This  document defines an Experimental Protocol for the Internet community.</t>
            </abstract>
          </front>
        </reference>
		
		<reference anchor="RFC8684" target="https://www.rfc-editor.org/info/rfc8684" quoteTitle="true" derivedAnchor="RFC8684">
          <front>
            <title>TCP Extensions for Multipath Operation with Multiple Addresses</title>
            <seriesInfo name="RFC" value="8684"/>
            <seriesInfo name="DOI" value="10.17487/RFC8684"/>
            <author initials="A." surname="Ford" fullname="A. Ford">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="C." surname="Raiciu" fullname="C. Raiciu">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="M." surname="Handley" fullname="M. Handley">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="O." surname="Bonaventure" fullname="O. Bonaventure">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="C." surname="Paasch" fullname="C. Paasch">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2020" month="March"/>
            <abstract>
              <t>TCP/IP communication is currently restricted to a single path per connection, yet multiple paths often exist between peers. The simultaneous use of these multiple paths for a TCP/IP session would improve resource usage within the network and thus improve user experience through higher throughput and improved resilience to network failure.</t>
              <t>Multipath TCP provides the ability to simultaneously use multiple paths between peers. This document presents a set of extensions to traditional TCP to support multipath operation. The protocol offers the same type of service to applications as TCP (i.e., a reliable bytestream), and it provides the components necessary to establish and use multiple TCP flows across potentially disjoint paths.</t>
              <t>This document specifies v1 of Multipath TCP, obsoleting v0 as specified in RFC 6824, through clarifications and modifications primarily driven by deployment experience.</t>
            </abstract>
          </front>
        </reference>
		
      </references>
	  
	  <references>
        <name>Informative References</name>

        <reference anchor="RFC2629" target="https://www.rfc-editor.org/info/rfc2629" xml:base="https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.2629.xml">
          <front>
            <title>Writing I-Ds and RFCs using XML</title>
            <seriesInfo name="DOI" value="10.17487/RFC2629"/>
            <seriesInfo name="RFC" value="2629"/>
            <author initials="M." surname="Rose" fullname="M. Rose">
              <organization/>
            </author>
            <date year="1999" month="June"/>
            <abstract>
              <t>This memo presents a technique for using XML (Extensible Markup Language) as a source format for documents in the Internet-Drafts (I-Ds) and Request for Comments (RFC) series.  This memo provides information for the Internet community.</t>
            </abstract>
          </front>
        </reference>
      </references>	  	  
    </references>
 </back>
</rfc>
