<?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. -->
]>
<?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-ietf-ipsecme-ipv6-ipv4-codes-01"
     ipr="trust200902" updates="7296">
  <front>
    <title abbrev="An Update to RFC7296">IKEv2 Notification Status Types for
    IPv4/IPv6 Coexistence</title>

    <author fullname="Mohamed Boucadair" initials="M." surname="Boucadair">
      <organization>Orange</organization>

      <address>
        <postal>
          <street></street>

          <city>Rennes</city>

          <code>35000</code>

          <country>France</country>
        </postal>

        <email>mohamed.boucadair@orange.com</email>
      </address>
    </author>

    <date day="05" month="November" year="2018" />

    <area>ipsecme</area>

    <keyword>IPv4 service continuity</keyword>

    <keyword>VoLTE</keyword>

    <keyword>Handover</keyword>

    <keyword>Service continuity</keyword>

    <keyword>3GPP</keyword>

    <keyword>IPv6 transition</keyword>

    <keyword>TS.24302</keyword>

    <keyword>PDP context</keyword>

    <keyword>PDP type</keyword>

    <abstract>
      <t>This document specifies new IKEv2 notification status types to better
      manage IPv4 and IPv6 co-existence.</t>

      <t>This document updates RFC7296.</t>
    </abstract>
  </front>

  <middle>
    <section title="Introduction">
      <t>As described in <xref target="RFC7849"></xref>, if the subscription
      data or network configuration allows only one IP address family (IPv4 or
      IPv6), the cellular host must not request a second PDP-Context to the
      same APN for the other IP address family. The Third Generation
      Partnership Project (3GPP) network informs the cellular host about
      allowed Packet Data Protocol (PDP) types by means of Session Management
      (SM) cause codes. In particular, the following cause codes can be
      returned: <list style="symbols">
          <t>cause #50 "PDP type IPv4 only allowed": This cause code is used
          by the network to indicate that only PDP type IPv4 is allowed for
          the requested Public Data Network (PDN) connectivity.</t>

          <t>cause #51 "PDP type IPv6 only allowed": This cause code is used
          by the network to indicate that only PDP type IPv6 is allowed for
          the requested PDN connectivity.</t>

          <t>cause #52 "single address bearers only allowed": This cause code
          is used by the network to indicate that the requested PDN
          connectivity is accepted with the restriction that only single IP
          version bearers are allowed.</t>
        </list></t>

      <t>If the requested IPv4v6 PDP-Context is not supported by the network
      but IPv4 and IPv6 PDP types are allowed, then the cellular host will be
      configured with an IPv4 address or an IPv6 prefix by the network. It
      must initiate another PDP-Context activation of the other address family
      in addition to the one already activated for a given Access Point Name
      (APN). The purpose of initiating a second PDP-Context is to achieve
      dual-stack connectivity by means of two PDP-Contexts.</t>

      <t>According to 3GPP specifications (TS.24302), when the UE attaches the
      network using a WLAN access by means of IKEv2 capabilities <xref
      target="RFC7296"></xref>, there are no equivalent notification codes to
      inform the User Equipment (UE) why an IP address family is not assigned
      or whether that UE should retry with another address family. <!--The lack of such codes has also some effect on providing service continuity during handover events from a cellular network to WLAN, and vice versa.--></t>

      <t>This document fills that void by introducing new IKEv2 notification
      status types for the sake of deterministic UE behaviors.</t>

      <t>These notification status types are not specific to 3GPP
      architectures, but can be used in other deployment contexts. Cellular
      networks are provided as an illustration example.</t>
    </section>

    <section anchor="notation" title="Terminology">
      <t>The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
      "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and
      "OPTIONAL" in this document are to be interpreted as described in BCP 14
      <xref target="RFC2119"></xref><xref target="RFC8174"></xref> when, and
      only when, they appear in all capitals, as shown here.</t>

      <t>This document makes use of the terms defined in <xref
      target="RFC7296"></xref>. In particular, readers should be familiar with
      "initiator" and "responder" terms used in that document.</t>
    </section>

    <section title="Why Not INTERNAL_ADDRESS_FAILURE?">
      <t><xref target="RFC7296">Section 3.15.4 of</xref> defines a generic
      notification error type that is related to a failure to handle an
      internal address failure. That error type does not explicitly allow an
      initiator to determine why a given address family is not assigned, nor
      whether it should try using another address family.
      INTERNAL_ADDRESS_FAILURE is a catch-all error type when an
      address-related issue is encountered by an IKEv2 responder.</t>

      <t>INTERNAL_ADDRESS_FAILURE does not provide sufficient hints to the
      IKEv2 initiator to adjust its behavior.</t>
    </section>

    <section title="An Update to RFC7296">
      <t>The following notification status types are defined:</t>

      <t><list style="symbols">
          <t>UNSUPPORTED_AF: This status type indicates that the requested
          address family (IPv4 or IPv6) is not supported. Subsequent exchanges
          with the remote peer MUST NOT include any object of that address
          family.</t>

          <t>IP6_ONLY_SUPPORTED: This status type indicates that only IPv6 is
          supported. Subsequent exchanges with the remote peer MUST NOT
          include any IPv4-related object.<vspace blankLines="1" />Concretely,
          if the initiator requests both IPv4 and IPv6 addresses/prefixes, the
          responder replies with IPv6 address(es)/prefix(es) and the
          IP6_ONLY_SUPPORTED notification status type. If the initiator
          requests only IPv4 address(es) but gets the IP6_ONLY_SUPPORTED
          notification status type from the responder, the IPv6-capable
          initiator should request IPv6 address(es) only in subsequent
          requests.</t>

          <t>IP4_ONLY_SUPPORTED: This status type indicates that only IPv4 is
          supported. Subsequent exchanges with the remote peer MUST NOT
          include any IPv6-related object. <vspace
          blankLines="1" />Concretely, if the initiator requests both IPv4 and
          IPv6 addresses/prefixes, the responder replies with IPv4 address(es)
          and the IP4_ONLY_SUPPORTED notification status type. If the
          initiator requests only IPv6 address(es) and gets the
          IP4_ONLY_SUPPORTED notification status type from the responder, the
          IPv4-capable initiator should request IPv4 address(es) only in
          subsequent requests.</t>

          <t>SINGLE_AF_SUPPORTED: This status type indicates that only a
          single address family can be assigned per request, not both. This
          status type is returned when an initiator requested both IPv4 and
          IPv6 addresses/prefixes in the same request, but only a single
          address family can be assigned per request by the responder. <vspace
          blankLines="1" />The address family preference is defined by a
          policy that is local to the responder.<vspace blankLines="1" />If a
          responder receives a request for both IPv4 and IPv6 address
          families, it replies with the preferred address family and includes
          SINGLE_AF_SUPPORTED notification status type. Upon receipt of this
          status type, the initiator MAY re-issue another configuration
          request to ask for an additional address family.</t>
        </list>For other address-related error cases that have not been
      covered by the aforementioned notification status types, the
      repsonder/initiator MUST follow the procedure defined in <xref
      target="RFC7849">Section 3.15.4 of</xref>. </t>
    </section>

    <section anchor="Security" title="Security Considerations">
      <t>This document adheres to the security considerations defined in <xref
      target="RFC7296"></xref>.</t>
    </section>

    <section anchor="sec-IANA" title="IANA Considerations">
      <t>This document requests IANA to update the "IKEv2 Notify Message Types
      - Status Types" registry available at:
      https://www.iana.org/assignments/ikev2-parameters/ikev2-parameters.xhtml
      with the following status types:</t>

      <t><figure>
          <artwork><![CDATA[Value           NOTIFY MESSAGES - STATUS TYPES        Reference
 TBD                     UNSUPPORTED_AF           [This-Document]
 TBD                   IP6_ONLY_SUPPORTED         [This-Document]
 TBD                   IP4_ONLY_SUPPORTED         [This-Document]
 TBD                  SINGLE_AF_SUPPORTED         [This-Document]
]]></artwork>
        </figure></t>
    </section>

    <section anchor="Acknowledgements" title="Acknowledgements">
      <t>Many thanks to Christian Jacquenet for the review.</t>

      <t>Thanks to Paul Wouters, Yaov Nir, Valery Smyslov, and Daniel Migault
      for the comments.</t>
    </section>
  </middle>

  <!--  *****BACK MATTER ***** -->

  <back>
    <references title="Normative References">
      <?rfc include="reference.RFC.7296"?>

      <?rfc include='reference.RFC.2119'?>

      <?rfc include='reference.RFC.8174'?>
    </references>

    <references title="Informative References">
      <?rfc include="reference.RFC.7849"?>

      <!---->
    </references>
  </back>
</rfc>
