Re: [babel] About ICMP and unnumbered routers
David Schinazi <dschinazi.ietf@gmail.com> Mon, 03 August 2020 00:52 UTC
Return-Path: <dschinazi.ietf@gmail.com>
X-Original-To: babel@ietfa.amsl.com
Delivered-To: babel@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 581EC3A0E72 for <babel@ietfa.amsl.com>; Sun, 2 Aug 2020 17:52:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.195
X-Spam-Level:
X-Spam-Status: No, score=-0.195 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, NORMAL_HTTP_TO_IP=0.001, NUMERIC_HTTP_ADDR=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lPltqfJfkYD2 for <babel@ietfa.amsl.com>; Sun, 2 Aug 2020 17:52:41 -0700 (PDT)
Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 59BEC3A0E71 for <babel@ietf.org>; Sun, 2 Aug 2020 17:52:41 -0700 (PDT)
Received: by mail-lj1-x232.google.com with SMTP id t6so24911218ljk.9 for <babel@ietf.org>; Sun, 02 Aug 2020 17:52:41 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=91zNVz68gxsAbjU9Yeqd+/t2ZugeRTGKIc4hxrr27Rw=; b=f9WqMsMOyya4G77/7wS2MipZ1BZ3dg9gOeWnpslaMpizjhxEPmUQkp1+QDxYRydOY0 8b1KpooS/MbG2Mawtz552pl7a3IwvyK9Kxc5fTIzu/zYoP4uev6TlHqoOS4PbBnBae9i j2gEJP/Kk2q+HU88pUgPQThDzVjbEu3t8T9EHdCTqO4gg9NMVJl/ngkGVAM+t+egwE3+ 1eRFb0SRdZ9BzdpFJFBOqv82itJ3nSjXjolSsjore5YEeH4UGp8fBfiLSVF6YzF3AJxd LEusDVN6tau939Kd6jcrGqHAW1Btb+5q1CHUNWQ9V3J8NiPxz27BldM4tQeWdwG1d0HZ wiBw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=91zNVz68gxsAbjU9Yeqd+/t2ZugeRTGKIc4hxrr27Rw=; b=DMVm/guc2siCoDErQ1k66VuzaAlyGaDZyNIGup7o3xuTHo6Dl7Z4dfUfzUgI23p1PF r9+QRbcGuRDcC+W/WAtdMeMADKEpccfn7rTk6yANUmpjV1ykgPvrXPiOOmarOhQU1ApP c7HAhj4Kwi7qFeUeJXvTcm/FGDUAE2l/vYoQgeyZzLNDp+wdxo4o12Atz7yE0s9Phrm0 TCDBLDNEy/JHW8vLnWi1q4dO44s689xuiC0M1/u5GcviGt9x5lfLVdiX1BwAZx9X+K2Q 4gHD7xeTKlplkIOlEHnaMRDPDONp7ztSWW0HpQBDuBZ6jzP7gFfQe2CMcjO+GPRjhBVo dPwg==
X-Gm-Message-State: AOAM530yajJnDDDLRMSrjAfOBWXm/kipD3DZX8vJRSQy3GTLVSJc7ZYA PExrL26Ky8C2+KQHtORlyjfCyu3Wu1kCIktR5pU=
X-Google-Smtp-Source: ABdhPJxXgIUJCa1LRbWuN/UCLt6JA7qvjVJLNFf3QzuMu7upS8EswKUzom/s6054t9arpSkWmWS1zy04YIhviAxwoPs=
X-Received: by 2002:a2e:86d5:: with SMTP id n21mr1447556ljj.188.1596415959464; Sun, 02 Aug 2020 17:52:39 -0700 (PDT)
MIME-Version: 1.0
References: <87pn88kgs0.wl-jch@irif.fr>
In-Reply-To: <87pn88kgs0.wl-jch@irif.fr>
From: David Schinazi <dschinazi.ietf@gmail.com>
Date: Sun, 02 Aug 2020 17:52:28 -0700
Message-ID: <CAPDSy+4-tiwtZmLYe-zNk2Xp1GTOZLwqX01FA-MEgGmjk8NXrw@mail.gmail.com>
To: Juliusz Chroboczek <jch@irif.fr>
Cc: Babel at IETF <babel@ietf.org>, Margaret <mrcullen42@gmail.com>, Théophile Bastian <theophile.bastian@ens.fr>
Content-Type: multipart/alternative; boundary="0000000000002d7e6205abee8ecd"
Archived-At: <https://mailarchive.ietf.org/arch/msg/babel/LxR8Lqhx6sIIi01lGkRJm3a2OrI>
Subject: Re: [babel] About ICMP and unnumbered routers
X-BeenThere: babel@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "A list for discussion of the Babel Routing Protocol." <babel.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/babel>, <mailto:babel-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/babel/>
List-Post: <mailto:babel@ietf.org>
List-Help: <mailto:babel-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/babel>, <mailto:babel-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 03 Aug 2020 00:52:43 -0000
I don't know if I qualify as a "wise person", but I have comments :-) I may have found a solution from 4rd. They reserved an "IPv4 dummy address" specifically for the purpose of filling in the source address of ICMPv4 packets: https://tools.ietf.org/html/rfc7600#section-4.8 (Text copied below for convenience) I think this might suit our needs? Cheers, David 4.8. Tunnel-Generated ICMPv6 Error Messages If a Tunnel packet is discarded on its way across a 4rd domain because of an unreachable destination, an ICMPv6 error message is returned to the IPv6 source. For the IPv4 source of the discarded packet to be informed of packet loss, the ICMPv6 message has to be converted into an ICMPv4 message. R-22: If a CE or BR receives an ICMPv6 error message [RFC4443], it MUST synthesize an ICMPv4 error packet [RFC792]. This packet MUST contain the first 8 octets of the discarded packet's IP payload. The reserved IPv4 dummy address (192.0.0.8/32; see Section 6) MUST be used as its source address. As described in [RFC6145], ICMPv6 Type = 1 and Code = 0 (Destination Unreachable, No route to destination) MUST be translated into ICMPv4 Type = 3 and Code = 0 (Destination Unreachable, Net unreachable), and ICMPv6 Type = 3 and Code = 0 (Time Exceeded, Hop limit exceeded in transit) MUST be translated into ICMPv4 Type = 11 and Code = 0 (Time Exceeded, time to live exceeded in transit). On Sun, Aug 2, 2020 at 12:08 PM Juliusz Chroboczek <jch@irif.fr> wrote: > Dear all, > > This mail is about the consequences of draft-bastian-babel-v4ov6-00 on > ICMPv4 generation. > > At last week's meeting, Margaret kindly pointed out that we didn't do our > homework, and that we didn't consider how ICMPv4 is sent out when the > sending router has no IPv4 addresses. I've looked at a few RFCs, and here > are my tentative conclusions. > > RFC 1812 Section 2.2.7 says: > > In this scheme, a router that > has unnumbered point to point lines also has a special IP address, > called a router-id in this memo. The router-id is one of the > router's IP addresses (a router is required to have at least one IP > address). This router-id is used as if it is the IP address of all > unnumbered interfaces. > > So it looks like it was decided back in 1995 that all IPv4 routers need at > least one IPv4 address. Much as I tried, I couldn't find anything that > would relax this requirement. As expected, when an ICMPv4 packet is sent > over an unnumbered interface, the distinguished "router-id" address is > used as the source address: > > the IP source address in an ICMP message originated by the router MUST > be one of the IP addresses associated with the physical interface over > which the ICMP message is transmitted. If the interface has no IP > addresses associated with it, the router's router-id (see Section > [5.2.5]) is used instead. > > (This appears to be a typo -- there's nothing relevant in Section 5.2.5.) > > Interestingly, there appears to be nothing in RFC 1812 that specifies that > the router-id is globally unique; thus, what we could do would be to put > the same IPv4 address on all routers. This would make traceroute a little > confusing (RFC 5837 might help), but it would solve both the problem with > ICMPv4 blackholes and compliance with RFC 1812. > > In the light of the above, and in the immortal words of Lenin, what shall > we do? > > 1. Pick a private IPv4 (say 10.42.42.42) and put it on the loopback > interface of all unnumbered routers. > > 2. Request a dedicated IPv4 address (the "all-routers anycast address") to > be used as the loopback address of unnumbered routers. > > 3. Update RFC 1812 to allow unnumbered routers and 0.0.0.0 as the source > address of ICMPv4 packets. > > I'm interested in the comments of wise people. > > -- Juliusz > > _______________________________________________ > babel mailing list > babel@ietf.org > https://www.ietf.org/mailman/listinfo/babel >
- [babel] About ICMP and unnumbered routers Juliusz Chroboczek
- Re: [babel] About ICMP and unnumbered routers David Schinazi
- Re: [babel] About ICMP and unnumbered routers Donald Eastlake
- Re: [babel] About ICMP and unnumbered routers STARK, BARBARA H
- Re: [babel] About ICMP and unnumbered routers STARK, BARBARA H
- Re: [babel] About ICMP and unnumbered routers Juliusz Chroboczek