Re: [Int-area] IP-in-IP, TTL decrementing when forwarding and BITW

Joe Touch <touch@ISI.EDU> Fri, 02 June 2006 13:57 UTC

Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com) by megatron.ietf.org with esmtp (Exim 4.43) id 1FmAA3-0003wG-4P; Fri, 02 Jun 2006 09:57:59 -0400
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1FmAA1-0003t6-1J for int-area@ietf.org; Fri, 02 Jun 2006 09:57:57 -0400
Received: from vapor.isi.edu ([128.9.64.64]) by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1FmA9z-0000rb-LP for int-area@ietf.org; Fri, 02 Jun 2006 09:57:57 -0400
Received: from [192.168.1.42] (pool-71-106-102-77.lsanca.dsl-w.verizon.net [71.106.102.77]) by vapor.isi.edu (8.11.6p2+0917/8.11.2) with ESMTP id k52DubI29064; Fri, 2 Jun 2006 06:56:37 -0700 (PDT)
Message-ID: <4480438F.6030206@isi.edu>
Date: Fri, 02 Jun 2006 06:56:31 -0700
From: Joe Touch <touch@ISI.EDU>
User-Agent: Thunderbird 1.5.0.4 (Windows/20060516)
MIME-Version: 1.0
To: Pekka Savola <pekkas@netcore.fi>
Subject: Re: [Int-area] IP-in-IP, TTL decrementing when forwarding and BITW
References: <Pine.LNX.4.64.0606020830220.12705@netcore.fi>
In-Reply-To: <Pine.LNX.4.64.0606020830220.12705@netcore.fi>
X-Enigmail-Version: 0.94.0.0
X-ISI-4-43-8-MailScanner: Found to be clean
X-MailScanner-From: touch@isi.edu
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 34d35111647d654d033d58d318c0d21a
Cc: int-area@ietf.org, "Charles E. Perkins" <charliep@iprg.nokia.com>
X-BeenThere: int-area@lists.ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: IETF Internet Area Mailing List <int-area.lists.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/int-area>, <mailto:int-area-request@lists.ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/int-area>
List-Post: <mailto:int-area@lists.ietf.org>
List-Help: <mailto:int-area-request@lists.ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/int-area>, <mailto:int-area-request@lists.ietf.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0649053000=="
Errors-To: int-area-bounces@lists.ietf.org

FWIW, there are two cases I considered where tunnel decrementing might
not occur:

	1) BITW
		typically this is for IPsec tunnels, which are
		spec'd in 4301, but which in spirit ought to follow
		2003

		they might also be used for range-extenders

	2) host-host tunnels
		in this case, there is no forwarding step,
		i.e., packets generated at the same node
		as the tunnel encapsulator and destined
		for the same node as the tunnel decapsulator

Joe

Pekka Savola wrote:
> Hi,
> 
> In TCPM WG, while discussing draft-ietf-tcpm-tcp-antispoof section
> 3.2.1, we came across something that may or may not be an issue in
> IP-in-IP tunneling spec (RFC 2003).  The spec says (see below) "[inner
> header TTL is decremented], if the tunneling is being done as part of
> forwarding the datagram, ..."
> 
> Joe's interpretation is that BITW implementations of IP-in-IP need not
> decrement inner header TTL.  Personally, I don't think RFC 2003 was even
> intended to cover BITW implementations.
> 
> This may become important if you want to apply GTSM (i.e. TTL=255
> checking) to encapsulated packets between the two endpoints of the
> tunnel.  If BITW implementation is acceptable, the topological area
> where TTL=255 applies expands slightly.
> 
> Does anyone recall the intent of the RFC?
> Is anyone aware of BITW implementations of RFC 2003?
> Or do folks have strong feelings what the intent should be?
> 
> Joe Touch said:
>> RFC2003, sec 3.1, third-to-last (emphasis mine):
>>
>>   When encapsulating a datagram, the TTL in the inner IP header is
>>   decremented by one **if the tunneling is being done as part of
>>   forwarding the datagram**; **otherwise, the inner header TTL is not
>>   changed during encapsulation**.  If the resulting TTL in the inner IP
>>   header is 0, the datagram is discarded and an ICMP Time Exceeded
>>   message SHOULD be returned to the sender.  An encapsulator MUST NOT
>>   encapsulate a datagram with TTL = 0.
>>
>> If that packet is generated at that node, or if the packet is sent to
>> the tunnel in a non-forwarding (BITW) step, that decrement would not
>> happen.
>>
>>   The TTL in the inner IP header is **not changed when decapsulating**.
>>   If, after decapsulation, the inner datagram has TTL = 0, the
>>   decapsulator MUST discard the datagram. If, after decapsulation, the
>>   decapsulator forwards the datagram to one of its network interfaces,
>>   **it will decrement the TTL as a result of doing normal IP
>> forwarding**.
>>   See also Section 4.4.
>>
>> The decapsulator decrements only if forwarding - again, if the packet
>> stops at the destination or if the device isn't a forwarder (BITW), that
>> wouldn't happen.
> 

_______________________________________________
Int-area mailing list
Int-area@lists.ietf.org
https://www1.ietf.org/mailman/listinfo/int-area