ping-pong phenomenon with p2p links & /127 prefixes

Fernando Gont <fernando@gont.com.ar> Mon, 16 August 2010 08:23 UTC

Return-Path: <fernando.gont.netbook.win@gmail.com>
X-Original-To: ipv6@core3.amsl.com
Delivered-To: ipv6@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 2A0783A6984 for <ipv6@core3.amsl.com>; Mon, 16 Aug 2010 01:23:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wlvwl-k3WXvc for <ipv6@core3.amsl.com>; Mon, 16 Aug 2010 01:23:30 -0700 (PDT)
Received: from mail-gy0-f194.google.com (mail-gy0-f194.google.com [209.85.160.194]) by core3.amsl.com (Postfix) with ESMTP id 21C7D3A6960 for <ipv6@ietf.org>; Mon, 16 Aug 2010 01:23:30 -0700 (PDT)
Received: by gyh4 with SMTP id 4so590119gyh.1 for <ipv6@ietf.org>; Mon, 16 Aug 2010 01:24:06 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:x-enigmail-version:openpgp :content-type:content-transfer-encoding; bh=QLhq/qvYE2XtyrKb54JT68IhwxcL/bWGlAYY0VCFO7Q=; b=XdedKQuxxqeuX8bvnv35IVgt8ZGutePbgrmgUvHMjpLoMsVppd3MCEtJcYlOLrkP2e Jf0Kr+i0pYiQIyEUGjfp8H4naQMD62PnyDQTDIoyULcUA2jELL+whQyj+s0uArwWO5vO L5WtlSh3GaaqMhfoynnAOvbn29yllxpUuPpKc=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :x-enigmail-version:openpgp:content-type:content-transfer-encoding; b=Vekh2g7eYKh3t0METWBvs76+BGzZR/uiWBnOSIKwN0cXr3NPDSnm4UiHhRBwOPVyyJ S5bQZIx5PcbqchK7/A3tc6e0B/oYddHDQfqGbufuTMJkHjPpJO90JWNrV6LMETSK9x3z 1gYmWneuDAeof2g7Xv4mCxNn2lvY5hDkgMpDk=
Received: by 10.100.122.15 with SMTP id u15mr5404749anc.98.1281947045968; Mon, 16 Aug 2010 01:24:05 -0700 (PDT)
Received: from [192.168.2.3] ([190.245.181.90]) by mx.google.com with ESMTPS id l6sm9952087ang.38.2010.08.16.01.24.02 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 16 Aug 2010 01:24:05 -0700 (PDT)
Sender: Fernando Gont <fernando.gont.netbook.win@gmail.com>
Message-ID: <4C68F1E1.2090003@gont.com.ar>
Date: Mon, 16 Aug 2010 05:08:01 -0300
From: Fernando Gont <fernando@gont.com.ar>
User-Agent: Thunderbird 2.0.0.24 (Windows/20100228)
MIME-Version: 1.0
To: "ipv6@ietf.org" <ipv6@ietf.org>
Subject: ping-pong phenomenon with p2p links & /127 prefixes
X-Enigmail-Version: 0.96.0
OpenPGP: id=D076FFF1
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit
Cc: "v6ops@ops.ietf.org" <v6ops@ops.ietf.org>
X-BeenThere: ipv6@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "IPv6 Maintenance Working Group \(6man\)" <ipv6.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/ipv6>, <mailto:ipv6-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/ipv6>
List-Post: <mailto:ipv6@ietf.org>
List-Help: <mailto:ipv6-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ipv6>, <mailto:ipv6-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 16 Aug 2010 08:23:31 -0000

Folks,

draft-ietf-ipngwg-p2p-pingpong-00.txt proposes a solution to the
ping-pong problem with point-to-point links, which IMHO is elegant:

> Check the incoming/outgoing interface of the packet.  If the
> interface is the same, is a point-to-point interface and the
> destination address on the packet seems to be on-link (in terms of
> Neighbor Discovery) on the point-to-point interface, the forwarding
> router SHOULD NOT forward the packet.  Also, in this case, the router
> SHOULD NOT generate ICMPv6 redirect message even if the incoming
> packet meets conditions in RFC2461 section 8.2.  The router SHOULD
> generate an ICMPv6 error message instead, with the type field being 1
> (destination unreachable), and the code field being 3 (address
> unreachable).

Then incorporated into RFC 4443 as follows:

>    One specific case in which a Destination Unreachable message is sent
>    with a code 3 is in response to a packet received by a router from a
>    point-to-point link, destined to an address within a subnet assigned
>    to that same link (other than one of the receiving router's own
>    addresses).  In such a case, the packet MUST NOT be forwarded back
>    onto the arrival link.

However, this fix allegedly has big performance implications on routers.
Can anybody comment on this "claim"?

P.S.: This fix doesn't prevent the use of /127s (it's orthogonal), but
I'm wondering about the reasons for which this fix is not the "first
line of defense" for *this* (i.e., ping-pong) vulnerability. -- yes, the
Kohno et al I-D mentions other (additional) reasons for using /127
prefixes o p2p links.

Thanks!

Kind regards,
-- 
Fernando Gont
e-mail: fernando@gont.com.ar || fgont@acm.org
PGP Fingerprint: 7809 84F5 322E 45C7 F1C9 3945 96EE A9EF D076 FFF1