<?xml version="1.0" encoding="US-ASCII"?>
<!DOCTYPE rfc SYSTEM "rfc2629.dtd" [
<!ENTITY rfc2119 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.2119.xml">
<!ENTITY rfc3171 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.3171.xml">
<!ENTITY rfc4566 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.4566.xml">
<!ENTITY rfc3376 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.3376.xml">
<!ENTITY rfc4604 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.4604.xml">
<!ENTITY rfc4605 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.4605.xml">
<!ENTITY rfc4607 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.4607.xml">
<!ENTITY rfc2236 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.2236.xml">
<!ENTITY rfc4787 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.4787.xml">
<!ENTITY rfc3550 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.3550.xml">
<!ENTITY rfc2365 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.2365.xml">
<!ENTITY rfc4601 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.4601.xml">
<!ENTITY rfc1112 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.1112.xml">
<!ENTITY rfc2460 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.2460.xml">
<!ENTITY rfc3208 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.3208.xml">
<!ENTITY rfc1918 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.1918.xml">
<!ENTITY I-D.ietf-avt-rtcpssm SYSTEM "http://xml.resource.org/public/rfc/bibxml3/reference.I-D.ietf-avt-rtcpssm.xml">
<!ENTITY rfc2205 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.2205.xml">
<!ENTITY I-D.ietf-mmusic-ice SYSTEM "http://xml.resource.org/public/rfc/bibxml3/reference.I-D.ietf-mmusic-ice.xml">
]>
<?xml-stylesheet type='text/xsl' href='rfc2629.xslt' ?>
<?rfc toc="yes" ?>
<?rfc symrefs="yes" ?>
<?rfc iprnotified="no" ?>
<?rfc strict="yes" ?>
<?rfc compact="yes" ?>
<?rfc subcompact="no" ?>
<?rfc sortrefs="yes" ?>
<?rfc colonspace='yes' ?>
<?rfc autobreaks="yes"?>
<rfc category="bcp" docName="draft-ietf-behave-multicast-12" ipr="full3978">
  <front>
    <title abbrev="NAT IP Multicast Requirements">IP Multicast Requirements
    for a Network Address (and port) Translator (NAT)</title>

    <author fullname="Dan Wing" initials="D." surname="Wing">
      <organization>Cisco Systems, Inc.</organization>

      <address>
        <postal>
          <street>170 West Tasman Drive</street>

          <city>San Jose</city>

          <region>CA</region>

          <code>95134</code>

          <country>USA</country>
        </postal>

        <email>dwing@cisco.com</email>
      </address>
    </author>

    <author fullname="Toerless Eckert" initials="T." surname="Eckert">
      <organization>Cisco Systems, Inc.</organization>

      <address>
        <postal>
          <street>170 West Tasman Drive</street>

          <city>San Jose</city>

          <region>CA</region>

          <code>95134</code>

          <country>USA</country>
        </postal>

        <email>eckert@cisco.com</email>
      </address>
    </author>

    <date year="2007" />

    <area>Transport</area>

    <workgroup>BEHAVE Working Group</workgroup>

    <keyword>NAT</keyword>

    <keyword>NAPT</keyword>

    <keyword>multicast</keyword>

    <keyword>IGMP</keyword>

    <keyword>IGMPv2</keyword>

    <keyword>IGMPv3</keyword>

    <keyword>proxy</keyword>

    <abstract>
      <t>This document specifies requirements for a Network Address (and port)
      Translator (NAT) that supports Any Source IP Multicast or Source-
      Specific IP Multicast. An IP multicast-capable NAT device that adheres
      to the requirements of this document can optimize the operation of IP
      multicast applications that are generally unaware of IP multicast NAT
      devices.</t>
    </abstract>
  </front>

  <middle>
    <section title="Introduction ">
      <t>In order for IP multicast applications to function well over NATs,
      multicast UDP must work as seamlessly as unicast UDP. However, NATs have
      little consistency in IP multicast operation which results in
      inconsistent user experiences and failed IP multicast operation.</t>

      <t>This document targets requirements intended to enable correct
      operations of Any Source Multicast and Source-Specific Multicast in devices
      running IGMP proxy routing and NAT and without applying NAT to IP
      multicast group addresses. This profile of functionality is the expected
      best practice for residential access routers, small branch routers, or
      similar deployments.</t>

      <t>Most of the principles outlined in this document do also apply when
      using protocols other than IGMP, such as PIM-SM, or when performing NAT
      between multiple "inside" interfaces, but explicit consideration for
      these cases is outside the scope of this document.</t>

      <t>This document describes the behavior of a device that functions as a
      NAT for unicast flows and also forwards IP multicast traffic in either
      direction ('inside' to 'outside', or 'outside' to 'inside'). This allows
      a host 'inside' the NAT to both receive multicast traffic and to source
      multicast traffic. Hosts on the 'inside' interface(s) of a NAT indicate
      their interest in receiving an IP multicast flow by sending an IGMP
      message to their local interface. An IP multicast-capable NAT will see
      that IGMP message (<xref target="RFC1112">IGMPv1</xref>, <xref
      target="RFC2236">IGMPv2</xref>, <xref target="RFC3376">IGMPv3</xref>),
      possibly perform some functions on that IGMP message, and forward it to
      its upstream router. This causes the upstream router to send that IP
      multicast traffic to the NAT, which forwards it to those inside
      segment(s) with host(s) that had previously sent IGMP messages for that
      IP multicast traffic.</t>

      <t>Out of scope of this document are <xref
      target="RFC4601">PIM-SM</xref> and <xref target="RFC2460">IPv6</xref>.
      The IGMP Proxy devices that are scoped in this document do not forward
      PIM-SM. IPv6 is out of scope because NAT is not considered necessary
      with IPv6.</t>

      <t>This document is a companion document to <xref target="RFC4787">"NAT
      Behavioral Requirements for Unicast UDP"</xref>.</t>
    </section>

    <section title="Terminology Used in this Document">
      <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>

      <t>In this document, the term "NAT" applies to both Network Address and
      Port Translator (NAPT) as well as a NAT that does not translate
      ports.</t>

      <t>The term 'inside' refers to the interface(s) on a NAT which contain
      hosts that wish to source or receive IP multicast traffic. The term
      'outside' refers to the interface(s) the NAT forwards IGMP membership
      messages to, and where the NAT routes IP multicast traffic that
      originates from hosts on its 'inside' interface.</t>
    </section>

    <section title="Background">
      <figure anchor="without_nat" title="Network without NAT'ing IGMP Proxy">
        <preamble>When a NAT isn't used, a host might be connected to the
        Internet in a configuration such as this:</preamble>

        <artwork align="center" name=""><![CDATA[
             +-------------+
  +------+   |  DSL modem  |    +------------+
  | host +---+     or      +-//-+ WAN Router |
  +------+   | cable modem |    +------------+
             +-------------+]]></artwork>
      </figure>

      <t>If instead of a single host as shown in <xref
      target="without_nat"></xref>, one or more LANs with potentially multiple
      hosts are to be connected, with the same type of service termination on
      the DSL or cable modem, a NAT device is added as shown in <xref
      target="with_nat"></xref>. This device in general perform routing and
      NAT functions such that it does look like a single host towards the
      DSL/cable modem.</t>

      <figure anchor="with_nat" title="Network with NATing IGMP Proxy">
        <preamble></preamble>

        <artwork align="center" name=""><![CDATA[
  +----+   +-------------+
  |host+---+ +---------+ |  +-----------+
  +----+   | |Multicast| |  | DSL modem |    +------------+
           | |  Proxy  | +--+    or     +-//-+ WAN Router |
  inside   | +---------+ |  |cable modem|    +------------+
interfaces |             |  +-----------+
           |  +------+   |
  +----+   |  | NAT  |   |  outside
  |host+---+  +------+   | interfaces
  +----+   +-------------+
        IGMP Proxy NAT Device]]></artwork>
      </figure>

      <t>In IP multicast, IGMP is the protocol used by hosts, such as the one
      shown in <xref target="without_nat"></xref>. For the NAT device in <xref
      target="with_nat"></xref> to look like the single host for IP multicast
      services towards the DSL/cable modem and to forward IP multicast traffic
      from and to the multiple hosts in the picture, it needs to perform so
      called <xref target="RFC4605">"IGMP Proxying"</xref> -- but within the
      context of also performing NAT. NAT is not covered by <xref
      target="RFC4605"></xref>. Adding NAT to IGMP proxying does not need to
      change the processing of the IGMP messages as defined in RFC4605: <list
          style="empty">
          <t>IGMP messages are never logically forwarded by the IGMP proxying
          device, but rather sourced or received by it. In general, receipt of
          IGMP messages by the device updates the device's IGMP state. The
          updated state changes the device's forwarding of multicast messages
          or triggers the sending of IGMP messages. "Forwarding" of IGMP
          protocol messages may thus only happen implicitly by implementation
          optimizations that create shortcuts in this machinery.</t>
        </list>This specifically means that IGMP protocol packets sent by the
      NAT device will always use IP address of the interface (inside or
      outside) from which they are sent, but because those packets are logically
      "sourced" and not "forwarded", NAT does not have any impact into
      this.</t>

      <t>Unlike unicast flows, packets with a multicast destination IP address
      do not have their destination IP address or destination port changed by
      a NAT. However, their source IP address (and source UDP port, in some
      cases with a NAPT) is changed if the packet goes from an 'inside'
      interface of a NAT to the 'outside' interface of a NAT -- similar to the
      behavior of a unicast packet across those same interfaces.</t>

      <t>Adding NAT to IGMP proxying does change the processing of IP
      multicast data packets forwarded across the IGMP proxying device as
      described in the following sections. These changes do actually simplify
      the ability to deploy IGMP proxying over a device that does NOT perform
      NAT.</t>

      <t>With an IGMP Proxy NAT Device, IP multicast data traffic sourced from
      hosts on the inside is NATed such that it will look like being sourced
      from a directly connected host to the WAN router, thus eliminating all
      non-standard PIM-SM concerns/configurations described in section 3.2 of
      <xref target="RFC4605"></xref>.</t>
    </section>

    <section title="Requirements">
      <t></t>

      <section title="NAT'ing IP Multicast Data Packets">
        <section title="Receiving Multicast Data Packets">
          <t><list counter="requirement" hangIndent="9" style="format REQ-%d:">
              <t>For IP multicast packets that are forwarded to a host(s) on its
              inside interface(s), a NAT MUST NOT modify the destination IP
              address or destination port of the packets.</t>
            </list></t>

          <t><list style="empty">
              <t>If a NAT were to modify the destination IP or port addresses,
              the NAT would also need to modify session announcements (e.g.,
              electronic program guides, SAP) and session establishment and
              control (e.g., SIP, RTSP) messages. Such modifications of
              application messages is not considered a best practice.
              Furthermore, a NAT'ed multi-homed network would need to
              coordinate such rewriting between its NATs.</t>
            </list></t>

          <t><list counter="requirement" hangIndent="9" style="format REQ-%d:">
              <t>A NAT MUST forward IP multicast UDP datagrams from its
              'outside' interface to multicast receivers on its 'inside'
              interface(s).</t>

              <t>A NAT SHOULD forward IP multicast non-UDP protocols (e.g.,
              <xref target="RFC3208">PGM</xref>, <xref
              target="RFC2205">RSVP</xref>) from its 'outside' interface to IP
              multicast receivers on its inside interface(s).</t>
            </list></t>
        </section>

        <section title="Sending Multicast Data Packets">
          <t>The following requirement is normal NAT behavior for unicast
          packets, as described in <xref target="RFC4787"></xref>, and
          extended here to provide support for IP multicast senders behind the
          NAT.</t>

          <t><list counter="requirement" hangIndent="9" style="format REQ-%d:">
              <t>A NAT MUST modify the source IP address of packets that
              arrive from an 'inside' interface towards the 'outside'
              interface so that those packets use the NAT's 'outside' IP
              address(es). <list hangIndent="1" style="format %c:">
                  <t>If the NAT also performs port translation (that is, it is
                  a NAPT), the NAT MUST also create a mapping to allow
                  responses to that IP multicast packet to be received by the
                  appropriate host. For Any Source Multicast, also see
                  <xref target="extend_refresh"></xref>.</t>

                  <t>To allow hosts to learn the NAT's 'outside' interface
                  address, the NAT MUST have "Endpoint-Independent Mapping"
                  behavior (REQ-1 of <xref target="RFC4787"></xref>) no matter
                  if the destination IP address is a unicast address or an IP
                  multicast address.</t>

                  <t>If the NAT has multiple public IP addresses, the NAT
                  SHOULD have address pooling behavior of "Paired" (as
                  described in section 4.1 of <xref target="RFC4787"></xref>)
                  for its IP multicast mappings as well as for its unicast UDP
                  mappings. This allows a multicast source to discover the
                  NAT's public IP address using a unicast address discovery
                  mechanism (e.g., <xref target="I-D.ietf-mmusic-ice"></xref>)
                  and communicate that discovered IP address to a multicast
                  receiver.</t>
                </list></t>

              <t>A NAT MUST forward IP multicast UDP datagrams from its
              'inside' interface(s) to its 'outside' interface. <list
                  hangIndent="1" style="format %c:">
                  <t>
NATs which support the above requirement MUST also provide a 
        configuration option to disable this feature.  Otherwise, a 
        multihomed network would cause duplicate instances of the 
        multicast data traffic on the public network.</t>
                </list></t>
            </list></t>

          <t>As many NATs are located adjacent to bandwidth-constrained access
          links, it is important that IP multicast senders communicating with
          IP multicast receivers behind the NAT not have their flows consume
          bandwidth on the access link. This is accomplished by applications
          using administratively scoped IP addresses.  Similarly, link-local
multicast traffic isn't supposed to be routed off the local network.</t>

          <t><list counter="requirement" hangIndent="9" style="format REQ-%d:">
              <t>The NAT's default configuration MUST NOT forward administratively scoped IP multicast
              traffic (239.0.0.0/8) <xref target="RFC2365"></xref> from its
              'inside' interface(s) to its 'outside' interface.
</t>
<t>The NAT MUST NOT forward <xref target="RFC3171">Local Network Control Block (224.0.0/24)</xref> (also known as "link-local multicast") traffic from 
its 'inside' interface(s) to its 'outside' interface.</t>

            </list></t>
        </section>
      </section>

      <section title="IGMP Version Support">
        <t><list counter="requirement" hangIndent="9" style="format REQ-%d:">
            <t>A NAT MAY support IGMPv1 (although IGMPv1 is considered
            obsolete).</t>

            <t>A NAT MUST support IGMPv2.</t>

            <t>A NAT SHOULD support IGMPv3.</t>
          </list></t>

        <section anchor="igmpv2" title="IGMPv1 or IGMPv2">
          <t>For IGMPv1 and IGMPv2, a NAT can successfully operate by merely
          forwarding IGMP membership reports and queries between the
          interested hosts (on its internal interface) towards its external
          interface.<list counter="requirement" hangIndent="9"
              style="format REQ-%d:">
              <t>If a NAT supports IGMPv1 and/or IGMPv2 (but not IGMPv3), the
              NAT MAY simply receive IGMP membership reports on the inside
              interface, NAT them, and relay the IGMP membership report, and
              do the same function in the opposite direction to the IGMP
              listeners. That is, the NAT does not need to do any aggregation
              of IGMP messages.<list hangIndent="1" style="format %c:">
                  <t>If a NAT relays IGMPv1 or IGMPv2 messages in this manner,
                  it MUST NOT decrement the TTL of the IGMP messages, as they
                  are already sent with TTL=1.</t>

                  <t>However, it is RECOMMENDED that such a NAT implement
                  <xref target="RFC4605">IGMP/MLD Proxying</xref>, because
                  IGMP aggregation provides a useful optimization.</t>
                </list></t>
            </list></t>
        </section>

        <section anchor="igmpv3" title="IGMPv3">
          <t>When a IGMPv3 proxying device receives an IGMP membership on an
          inside interface, it creates its own IGMP proxying membership state
          and its own IGMP forwarding table. It then creates an independent
          IGMP membership report on its outside interface reporting the IP
          multicast groups/channels -- but there is no direct relationship or
          "forwarding" of IGMP membership reports or queries across the
          interfaces. The NAT device will subsequently receive a IP multicast
          data packet on the 'outside' interface and forward the IP multicast
          packet to the 'inside' interface(s) based on its IGMP forwarding
          table.</t>

          <t>By performing NAT on IGMPv3 membership reports, the membership
          reports appear to originate from a single IGMPv3 reporter instead of
          different reporters. Because IGMPv3 has different types of
          membership reports differentiating between status (IS_INCLUDE,
          IS_EXCLUDE) and change indication (e.g., TO_INCLUDE, TO_EXCLUDE), if
          a NAT were to interleave reports from two or more reporters (joining
          and leaving the same groups) the NAT would create a sequence of
          packets that are not compliant with an <xref target="RFC3376">IGMPv3
          reporter</xref>. For this reason, the following requirements are
          specified:</t>

          <t><list counter="requirement" hangIndent="9" style="format REQ-%d:">
              <t>If a NAT supports IGMPv3, the NAT MUST implement <xref
              target="RFC4605">IGMP/MLD Proxying</xref>. Such compliance
              causes the NAT to aggregate the IGMPv3 membership reports and
              report only the aggregated information upstream.</t>

              <t>If a NAT supports IGMPv3, the NAT MUST implement <xref
              target="RFC4607">Source-Specific Multicast for IP</xref> and
              <xref target="RFC4604">IGMPv3/MLDv2 for SSM</xref>.</t>
            </list> Failure to implement IGMP aggregation (<xref
          target="RFC4605"></xref>) will cause undesired temporary black
          holing of IP multicast traffic. For example, consider two hosts
          behind the same NAT. If one host is joining a session at the same
          time another is leaving the session, and the NAT were to merely
          relay the join and leave upstream, the session will be terminated,
          and the join and leave announcements would not comply with section 5
          of <xref target="RFC3376"></xref>.</t>
        </section>
      </section>

      <section anchor="extend_refresh"
               title="Any Source Multicast Transmitters">
        <t>Any Source Multicast (ASM) uses the IP addresses in the 224/8
        through 231/8, and 233/8 through 239/8 range <xref
        target="IANA-ALLOC"></xref>.</t>

        <t>When a host both receives an ASM stream and sends traffic into it,
        using <xref target="RFC3550">RTP</xref>, there is a potential problem
        if a NAT merely followed the requirements of <xref
        target="RFC4787"></xref>. The problem is that RTP uses the source
        transport address (source IP address and source UDP port) and the
        RTP/RTCP SSRC value to identify session members. If a session member
        sees the same SSRC arrive from a different transport address, that
        session member will perform RTP collision detection (section 8.2 of
        <xref target="RFC3550"></xref>). If a NAT merely followed the
        requirements of <xref target="RFC4787"></xref> and timed out a UDP
        session after 2 minutes of inactivity and RTCP receiver reports are
        sent less often than every 2 minutes, RTP collision detection would be
        performed by other session members sharing the same SSRC, complicating
        diagnostic tools and potentially interfering with jitter buffer
        algorithms. This situation can occur, for example, with an IP
        multicast group of approximately 300 members with a normal 50Kbps
        audio RTP stream.</t>

        <t>Source-Specific Multicast does not need this long timer because
        application feedback reports are unicast (rather than IP multicast)
        and identifiers, rather than IP addresses and UDP ports, are used to
        identify a specific IP multicast receiver (e.g., <xref
        target="I-D.ietf-avt-rtcpssm"></xref>.</t>

        <t><list counter="requirement" hangIndent="9" style="format REQ-%d:">
            <t>If a host on the inside interface of a NAT belongs to an Any
            Source Multicast host group and the host sends a UDP packet to
            the same group, the NAT SHOULD have a UDP mapping timer of 60
            minutes for that mapping. <list hangIndent="1" style="format %c:">
                <t>This UDP mapping SHOULD be destroyed when the host leaves
                that host group. The NAT is aware of this through receipt of
                an IGMP message from the host.</t>

                <t>If a NAT has exhausted its resources, the NAT MAY time out
                that mapping before 60 minutes have elapsed, but this is
                discouraged. Note that even in a situation with resource
                exhaustion, a NAT is still required to follow the minimum
                mapping duration of 2 minutes (REQ-5 of <xref
                target="RFC4787"></xref>).</t>
              </list></t>
          </list></t>
      </section>
    </section>

    <section title="Requirements Summary">
      <t>This section summarizes the requirements.</t>

      <t><list counter="req_summary" style="format REQ-%d:">
          <t>For IP multicast packets that are forwarded to a host(s) on its
          inside interface(s), a NAT MUST NOT modify the destination IP
          address or destination port of the packets.</t>

          <t>A NAT MUST forward IP multicast UDP datagrams from its 'outside'
          interface to multicast receivers on its 'inside'
          interface(s).</t>

          <t>A NAT SHOULD forward IP multicast non-UDP protocols (e.g., <xref
          target="RFC3208">PGM</xref>, <xref target="RFC2205">RSVP</xref>)
          from its 'outside' interface to IP multicast receivers on its inside
          interface(s).</t>

          <t>A NAT MUST modify the source IP address of packets that arrive
          from an 'inside' interface towards the 'outside' interface so that
          those packets use the NAT's 'outside' IP address(es). <list
              style="format %c:">
              <t>If the NAT also performs port translation (that is, it is a
              NAPT), the NAT MUST also create a mapping to allow responses to
              that IP multicast packet to be received by the appropriate host.
              For Any Source Multicast, also see <xref
              target="extend_refresh"></xref>.</t>

              <t>To allow hosts to learn the NAT's 'outside' interface
              address, the NAT MUST have "Endpoint-Independent Mapping"
              behavior (REQ-1 of <xref target="RFC4787"></xref>) no matter if
              the destination IP address is a unicast address or an IP
              multicast address.</t>

              <t>If the NAT has multiple public IP addresses, the NAT SHOULD
              have address pooling behavior of "Paired" (as described in
              section 4.1 of <xref target="RFC4787"></xref>) for its IP
              multicast mappings as well as for its unicast UDP mappings.
              This allows a multicast source to discover the
                  NAT's public IP address using a unicast address discovery
                  mechanism (e.g., <xref target="I-D.ietf-mmusic-ice"></xref>)
                  and communicate that discovered IP address to a multicast
                  receiver.</t>

            </list></t>

          <t>A NAT MUST forward IP multicast UDP datagrams from its 'inside'
          interface(s) to its 'outside' interface. <list hangIndent="1"
              style="format %c:">
                  <t>
NATs which support the above requirement MUST also provide a 
        configuration option to disable this feature.  Otherwise, a 
        multihomed network would cause duplicate instances of the 
        multicast data traffic on the public network.</t>
            </list></t>

              <t>The NAT's default configuration MUST NOT forward administratively scoped IP multicast
              traffic (239.0.0.0/8) <xref target="RFC2365"></xref> from its
              'inside' interface(s) to its 'outside' interface.</t>


<t>The NAT MUST NOT forward <xref target="RFC3171">Local Network Control Block (224.0.0/24)</xref> (also known as "link-local multicast") traffic from 
its 'inside' interface(s) to its 'outside' interface.</t>



          <t>A NAT MAY support IGMPv1 (although IGMPv1 is considered
          obsolete).</t>

          <t>A NAT MUST support IGMPv2.</t>

          <t>A NAT SHOULD support IGMPv3.</t>

          <t>If a NAT supports IGMPv1 and/or IGMPv2 (but not IGMPv3), the NAT
          MAY simply receive IGMP membership reports on the inside interface,
          NAT them, and relay the IGMP membership report, and do the same
          function in the opposite direction to the IGMP listeners. That is,
          the NAT does not need to do any aggregation of IGMP messages.<list
              style="format %c:">
              <t>If a NAT relays IGMPv1 or IGMPv2 messages in this manner, it
              MUST NOT decrement the TTL of the IGMP messages, as they are
              already sent with TTL=1.</t>

              <t>However, it is RECOMMENDED that such a NAT implement <xref
              target="RFC4605">IGMP/MLD Proxying</xref>, because IGMP
              aggregation provides a useful optimization.</t>
            </list></t>

          <t>If a NAT supports IGMPv3, the NAT MUST implement <xref
          target="RFC4605">IGMP/MLD Proxying</xref>. Such compliance causes
          the NAT to aggregate the IGMPv3 membership reports and report only
          the aggregated information upstream.</t>

              <t>If a NAT supports IGMPv3, the NAT MUST implement <xref
              target="RFC4607">Source-Specific Multicast for IP</xref> and
              <xref target="RFC4604">IGMPv3/MLDv2 for SSM</xref>.</t>

          <t>If a host on the inside interface of a NAT belongs to an Any
          Source Multicast host group and the host sends a UDP packet to the
          same group, the NAT SHOULD have a UDP mapping timer of 60 minutes
          for that mapping. <list style="format %c:">
              <t>This UDP mapping SHOULD be destroyed when the host leaves
              that host group. The NAT is aware of this through receipt of an
              IGMP message from the host.</t>

              <t>If a NAT has exhausted its resources, the NAT MAY time out
              that mapping before 60 minutes have elapsed, but this is
              discouraged. Note that even in a situation with resource
              exhaustion, a NAT is still required to follow the minimum
              mapping duration of 2 minutes (REQ-5 of <xref
              target="RFC4787"></xref>).</t>
            </list></t>
        </list></t>
    </section>

    <section title="Security Considerations">
      <t>The Security Considerations sections of <xref
      target="RFC3376">IGMPv3</xref> and <xref target="RFC4605">IGMP
      Proxying</xref> apply to a device complying with this document.</t>

      <t>When a host is using RTP and participating in an Any Source
      Multicast session, the host's periodic RTCP receiver reports cause the
      NAT to create a mapping. When the group size is less than approximately
      300, the RTCP reports are sent frequently enough that a NAT's mapping
      will always be kept open. When the group size is larger than
      approximately 300, the RTCP reports are sent less frequently. The
      recommendation in <xref target="extend_refresh"></xref> causes the NAT
      mapping to be kept open for the duration of the host's participation in
      that IP multicast session no matter the size of the multicast host or
      periodicity of the host's RTCP transmissions.</t>
    </section>

    <section title="IANA Considerations">
      <t>This document does not require any IANA registrations.</t>
    </section>

    <section title="Acknowledgments">
      <t>Thanks to Jari Arkko, Yiqun Cai, Stephen Casner, Remi Denis-Courmont, Lars Eggert, Gorry
      Fairhurst, Alfred Hines, Prashant Jhingran, Bharat Joshi,
Francois Le Faucheur, Albert
      Manfredi, Marcus Maranhao, Bryan McLaughlin, Chris Newman, Tim Polk, Pekka Savola, 
Mark Townsley, Magnus
      Westerlund, and Stig Venaas for their assistance in writing this document.</t>
    </section>
  </middle>

  <!--  REFERENCES   (the environment variable XML_LIBRARY must point to the directory where the citations (references) can be found; unzip them from http://xml.resource.org/ -->

  <back>
    <references title="Normative References">
      &rfc2119;

      &rfc3376;

      &rfc4604;

      &rfc4605;

      &rfc4607;

      &rfc2236;

      &rfc4787;

      &rfc3550;

      &rfc2365;

&rfc3171;

    </references>

    <references title="Informational References">
      &rfc4601;

      &rfc1112;

      &rfc2460;

      &rfc3208;

      &I-D.ietf-avt-rtcpssm;

      &rfc2205;

      &I-D.ietf-mmusic-ice;

      &rfc1918;

&rfc4566;

      <reference anchor="IANA-ALLOC"
                 target="http://www.iana.org/assignments/multicast-addresses">
        <front>
          <title>Internet Multicast Addresses</title>

          <author fullname="" surname="Internet Assigned Numbers Authority">
            <organization></organization>
          </author>

          <date year="" />
        </front>

      </reference>
    </references>

    <section anchor="app_considerations" title="Application Considerations">
      <t>SSM requires listeners to know the SSM channel (S,G), which is
      comprised of the IP source address (S) and the IP multicast group (G).
      An SSM source needs to communicate its IP address in its SSM session
      establishment message (e.g., in its Session Description Protocol (SDP)
<xref target="RFC4566"></xref>). When the SSM sender is behind
      a NAT and the SSM receiver(s) are on the other side of that NAT, the SSM
      sender will need to determine its IP source address relevant to the SSM
      receivers; generally, this will be the 'outside' IP address of the NAT.
      This 'outside' address needs to be included in the SSM session
      establishment message (e.g., SDP) so that listeners on the 'outside' of
      the NAT can receive the SSM channel.</t>

      <t>If there are SSM listeners on both the 'outside' and 'inside' of the
      NAT, it may be valuable to consider using <xref
      target="I-D.ietf-mmusic-ice">ICE</xref> in the session advertisement;
      the full scope of the interaction between SSM and ICE is beyond the
      scope of this document.</t>

      <t>If multiple SSM sources on the inside of a NAT choose the same
      multicast group address, those sources are uniquely identifiable because
      their IP addresses are unique. However, if their multicast traffic is
      NAT'ed and sent on the NAT's public interface, the traffic from those
      individual sources is no longer uniquely identifiable. This will cause
      problems for multicast receivers which will see an intermixing of
      traffic from those sources. Resolution of this issue is left for future
      study. In the meantime, applications that source SSM multicast traffic
      are encouraged to allow the user to modify the multicast SSM address so
      that users can avoid this problem if that application is placed behind a
      NAT.</t>

      <t>A multicast source that wants its traffic to not traverse a router
      (e.g., leave a home network) may find it useful to send traffic with IP
      TTL=1. Both ASM and SSM sources may find this useful.</t>

<t>As many NATs use the same private address space 
  (e.g., 192.168.0.0/16, <xref target="RFC1918"></xref>), RTP stacks are 
  encouraged to generate CNAMEs properly (see end of Section 6.5.1
  of <xref target="RFC3550"></xref>.)
</t>
    </section>
  </back>
</rfc>