Re: [IPv6] [Int-area] New Draft - ICMPv6 Loopback

Justin Iurman <justin.iurman@uliege.be> Wed, 07 June 2023 11:24 UTC

Return-Path: <justin.iurman@uliege.be>
X-Original-To: ipv6@ietfa.amsl.com
Delivered-To: ipv6@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C2370C151084; Wed, 7 Jun 2023 04:24:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.094
X-Spam-Level:
X-Spam-Status: No, score=-2.094 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=uliege.be
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id P9Voo5RX9nNh; Wed, 7 Jun 2023 04:24:48 -0700 (PDT)
Received: from serv108.segi.ulg.ac.be (serv108.segi.ulg.ac.be [139.165.32.111]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C5A42C151531; Wed, 7 Jun 2023 04:24:29 -0700 (PDT)
Received: from [192.168.1.62] (125.179-65-87.adsl-dyn.isp.belgacom.be [87.65.179.125]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by serv108.segi.ulg.ac.be (Postfix) with ESMTPSA id 058F8200C98C; Wed, 7 Jun 2023 13:24:25 +0200 (CEST)
DKIM-Filter: OpenDKIM Filter v2.11.0 serv108.segi.ulg.ac.be 058F8200C98C
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uliege.be; s=ulg20190529; t=1686137065; bh=GkkWAZeSfuJ2gSYpNPoSEZC11VA0XCCd5ZXYXUCX8TQ=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=uq4Fl46++xu0UGMc1lzfUd7zi2UrAMik+g68qw4npIIq5dDYDZMzxRacqpXPESLXi 7WMgtaDcRAtRZYACa9xN6a12Rb5uuQI/n/Q1FnrW8c28Wq1maztqndGpWhzDHbiFET kwpHt05boSrFZlL/Zr4xGpgGdQ/uPSpLU6alOnHRWf9a4f4VR2reTIdePZQ9DJ865b TUWl746mysuz0+U9ovpPr6aqa0YHwce+Htd4z5QXE55DFQokbtKjpBo+07ycAfNoxh XgKIh+Ypc1Q/47I5yu+mnxR5uiRzIJqFJI9ECOWIezoJiTLx62xtOYkE0Noj3bNDjV D9Fb/ph4bC3hQ==
Content-Type: multipart/mixed; boundary="------------4IeCTZua2MQxF03etY0l2SC3"
Message-ID: <da65dbbe-e46d-b514-50b1-280dec3ace9c@uliege.be>
Date: Wed, 07 Jun 2023 13:24:24 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0
To: Erik Kline <ek.ietf@gmail.com>, Tal Mizrahi <tal.mizrahi.phd@gmail.com>
Cc: "int-area@ietf.org" <int-area@ietf.org>, Bob Hinden <bob.hinden@gmail.com>, ipv6@ietf.org
References: <CABUE3Xm5nT4R8wUu6FfXW0u66YoyDS45cRTuiGjRJ0CRGsevnQ@mail.gmail.com> <908A768F-F9CF-468A-A7C1-27736FE10BFE@gmail.com> <5B0C59DC-BD03-4BEE-A719-6E892F61F916@cisco.com> <CABUE3Xk--WodVbGFQtJvPTdtH154bNE6nufxoFDJuh6nVbpFRg@mail.gmail.com> <CAMGpriWBzdTqo2Dqz=icOxO3nB=Ax=RLaPefUocRLuC+in5xnA@mail.gmail.com>
Content-Language: en-US
From: Justin Iurman <justin.iurman@uliege.be>
In-Reply-To: <CAMGpriWBzdTqo2Dqz=icOxO3nB=Ax=RLaPefUocRLuC+in5xnA@mail.gmail.com>
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/PEVXiWlBdlQzr0635bidd4HQVqI>
Subject: Re: [IPv6] [Int-area] New Draft - ICMPv6 Loopback
X-BeenThere: ipv6@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: "IPv6 Maintenance Working Group \(6man\)" <ipv6.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ipv6>, <mailto:ipv6-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/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: Wed, 07 Jun 2023 11:24:53 -0000

On 6/7/23 08:06, Erik Kline wrote:
> Poking around the Linux kernel source, my reading of net/ipv6/icmp.c's
> icmpv6_rcv() is that it checks the type byte before dispatching to
> icmpv6_echo_reply(), and inside icmpv6_echo_reply() I'm not seeing any
> checking of the code byte, so I'd assume (without testing) that it
> just constructs a normal echo reply.  I also suspect that it just
> copies the incoming code value into the reply.
> 
> The only differentiation I see being made is between echo request
> (4443) and extended echo request (8335).
> 
> Should be easy enough to test (after I get a few other things done).

+1 ... tested and confirmed (pcap attached, code 0 for packets 1-2, code 
1 for packets 3-4).

Cheers,
Justin

> On Tue, Jun 6, 2023 at 9:30 PM Tal Mizrahi <tal.mizrahi.phd@gmail.com> wrote:
>>
>> Bob, Eric,
>>
>> Thanks for the feedback.
>> Defining a new code for ICMPv6 Echo rather than defining a new type
>> may be the right way to go.
>> Our main concern with this is that RFC 4443 defines what to do with an
>> unknown type, but does not define what to do with an unknown code. It
>> is not clear what existing implementations do when receiving an Echo
>> Request with an unknown code. That is why the current draft calls for
>> a new type. However, we are open to more feedback about this, and it
>> may end up being just a new code.
>>
>> Cheers,
>> Tal.
>>
>> On Tue, Jun 6, 2023 at 8:33 PM Eric Vyncke (evyncke) <evyncke@cisco.com> wrote:
>>>
>>> Without any hat, I agree with Bob.
>>>
>>> This I-D should eventually go to 6MAN WG though (with my AD hat)
>>>
>>> -éric
>>>
>>> On 06/06/2023, 08:34, "Int-area on behalf of Bob Hinden" <int-area-bounces@ietf.org <mailto:int-area-bounces@ietf.org> on behalf of bob.hinden@gmail.com <mailto:bob.hinden@gmail.com>> wrote:
>>>
>>>
>>> Tal,
>>>
>>>
>>> I did a quick read of your draft.
>>>
>>>
>>> As noted in the draft this seems to be very similar to ICMPv6 Echo/Echo Reply. The change is to include the request packet in the response, not just the payload.
>>>
>>>
>>> While I don’t have any real opinion on the need for this, I do think it would be a lot simpler if the draft just defined a new Code field value for Echo Request/Reply that specified this behavior. Currently the Code field is set to zero, another value could specify this behavior.
>>>
>>>
>>> Deployment might be easier as I suspect ICMPv6 types other than the current definitions will be filtered in many places.
>>>
>>>
>>> Bob
>>>
>>>
>>>
>>>
>>>
>>>
>>>> On Jun 6, 2023, at 4:54 AM, Tal Mizrahi <tal.mizrahi.phd@gmail.com <mailto:tal.mizrahi.phd@gmail.com>> wrote:
>>>>
>>>> Hi,
>>>>
>>>> New draft: https://datatracker.ietf.org/doc/draft-mcb-intarea-icmpv6-loopback/ <https://datatracker.ietf.org/doc/draft-mcb-intarea-icmpv6-loopback/>
>>>>
>>>> We have posted a new draft that proposes two new ICMPv6 message types:
>>>> Loopback Request and Reply.
>>>> ICMPv6 Loopback is very similar to Echo, except that after a Loopback
>>>> Request is sent, its corresponding Reply includes as much of the IPv6
>>>> Loopback Request packet as possible, including the IPv6 header and
>>>> IPv6 extension headers and options if they are present.
>>>>
>>>> We believe that ICMPv6 Loopback can be very useful for returning IPv6
>>>> options that were included in Request packet back to the sender,
>>>> including for example sending IOAM [RFC 9197] data from the Request
>>>> back to the sender, sending the SRH [RFC 8754] of the Request back to
>>>> the sender, as well as for in-progress / future protocols such as
>>>> draft-filsfils-spring-path-tracing and draft-kumar-ippm-ifa.
>>>>
>>>> We would be happy for feedback, as well as suggestions about whether
>>>> the INT-AREA WG is the right place to discuss this draft.
>>>>
>>>> Cheers,
>>>> Tal.
>>>>
>>>> _______________________________________________
>>>> Int-area mailing list
>>>> Int-area@ietf.org <mailto:Int-area@ietf.org>
>>>> https://www.ietf.org/mailman/listinfo/int-area <https://www.ietf.org/mailman/listinfo/int-area>
>>>
>>>
>>>
>>>
>>>
>>
>> --------------------------------------------------------------------
>> IETF IPv6 working group mailing list
>> ipv6@ietf.org
>> Administrative Requests: https://www.ietf.org/mailman/listinfo/ipv6
>> --------------------------------------------------------------------
> 
> --------------------------------------------------------------------
> IETF IPv6 working group mailing list
> ipv6@ietf.org
> Administrative Requests: https://www.ietf.org/mailman/listinfo/ipv6
> --------------------------------------------------------------------