[pim] Re: IGMP v3 update - clarification about which router queries cause version fallback
Brian Haberman <brian@innovationslab.net> Thu, 15 August 2024 19:29 UTC
Return-Path: <brian@innovationslab.net>
X-Original-To: pim@ietfa.amsl.com
Delivered-To: pim@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 30594C16943B for <pim@ietfa.amsl.com>; Thu, 15 Aug 2024 12:29:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.907
X-Spam-Level:
X-Spam-Status: No, score=-1.907 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=innovationslab-net.20230601.gappssmtp.com
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 L8VJGd9qsqvf for <pim@ietfa.amsl.com>; Thu, 15 Aug 2024 12:29:44 -0700 (PDT)
Received: from mail-yw1-x112e.google.com (mail-yw1-x112e.google.com [IPv6:2607:f8b0:4864:20::112e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8F3E2C1654F3 for <pim@ietf.org>; Thu, 15 Aug 2024 12:29:44 -0700 (PDT)
Received: by mail-yw1-x112e.google.com with SMTP id 00721157ae682-64b417e1511so12697267b3.3 for <pim@ietf.org>; Thu, 15 Aug 2024 12:29:44 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=innovationslab-net.20230601.gappssmtp.com; s=20230601; t=1723750183; x=1724354983; darn=ietf.org; h=in-reply-to:autocrypt:from:content-language:references:cc:to :subject:user-agent:mime-version:date:message-id:from:to:cc:subject :date:message-id:reply-to; bh=cXkdVCMtOqciL+m2hipgf+lKd1L8lRWXqa89bNw6vKE=; b=3GwQw3oWTWsJ2dQfiIhl0k0cN+aqykaA6miC2kK8WdB92/213kwSCKoTYAqYzglhIj 5ZspSh+MdXbcVSg6lqFwEnnY9CDYJauCE5lqlDRZBKuZ8ubljvhDbWPr0NOP5X+N7i5z yeDv74BzC+RGEcPiz4/fkW0jxIIf7icliBxIIJUFn9J2F9O3S3caz9d/PdDS95TXDtgv d7wY2U5BVnNS3J7RvWNmK6QD3Zqcr7BjCG2ftXX2Lcgl7/sbpxovfRacEBcgXk3q9yS+ uHmtxguuNBZJZTY2x6/1moxN6ooCd9iYF0YLGE2rzQxVKdD6dzk7U3VW4Bi12ngS8afX Rehw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723750183; x=1724354983; h=in-reply-to:autocrypt:from:content-language:references:cc:to :subject:user-agent:mime-version:date:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=cXkdVCMtOqciL+m2hipgf+lKd1L8lRWXqa89bNw6vKE=; b=ULCe7FM2+eVm6g7fyYoDiyMhWPJZF0KLVyPtzrxHK4XVVOIlCAPhmSfDymzvwdBVGN qjW4kqxvotcz9per73wT+CHyj1Kw3k1fiLrSmuOROHUmdSC0Kw+ebLp8EswcKnAHF9Vq t+uSh6GHMggw3zpVylyHyrbg2S6Uso+0UT9dIfJXtxl8nQh9aXpz/6LA65D3NIDTo34E is5LlWtreQBqSFAIYWsBVEljg38sZxe5RtJ0c4/ZuIn6MneMsQlk2S2Qy0dyHupYFRll ydP+/CcTu+fUNSzkSqhU9lnH2aJAbFBTlDtSQZinVI4rJ6qJYdfPqjYBzWX4RXTwwrK1 9yoA==
X-Gm-Message-State: AOJu0YxyatkjVlCi+RVF/MmusRfZBq385l3ZkxWkPH781tINtqS0zPvh IkbQAqUjT0z25J7gwUciJmXrm40XJ/y8zz8PBcR3JFXprGAbNX4qoBa5T0dudlpmtjh9KngivDq U
X-Google-Smtp-Source: AGHT+IGX9h3oknpiCdtVwngUu043LA6U0fs9dJ2mXw2uydxZrKTmyIbRj9S9djpvQ25FpGGZDxKcJw==
X-Received: by 2002:a05:690c:6784:b0:6b0:c1d4:713d with SMTP id 00721157ae682-6b1bb47804dmr9713087b3.21.1723750183261; Thu, 15 Aug 2024 12:29:43 -0700 (PDT)
Received: from [192.168.1.23] ([172.59.112.90]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6bf6fdd928fsm9127506d6.21.2024.08.15.12.29.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 15 Aug 2024 12:29:42 -0700 (PDT)
Message-ID: <3aae3037-7f75-4e1b-9d44-f664e752a7a2@innovationslab.net>
Date: Thu, 15 Aug 2024 15:29:41 -0400
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
To: Dino Farinacci <farinacci@gmail.com>, Phil Karn <karn@ka9q.net>
References: <9a4ab4e0-a5aa-4c9b-bf02-01fd070858a8@ka9q.net> <13f97817-2506-4ace-a44d-a7f8a8525c96@innovationslab.net> <D2183B0A-209E-40A6-AC3F-553D122AAF01@ka9q.net> <C61FF107-AD97-471E-AA2E-B6B570FC4E71@gmail.com>
Content-Language: en-US
From: Brian Haberman <brian@innovationslab.net>
Autocrypt: addr=brian@innovationslab.net; keydata= xsFNBGFCWtIBEAC2FIgMIrH27l4L1Uu+vxCBakOv0Y1nxsu61+aulA78two2kCl7OCF+myP8 KQHEFMoZSn+ZvR+QDFyhsHe7qDK0CVf1K3n97PptXG5kvbnDJdwVJV0w9zYC17/VDgGAKLqj 0iNDVc9mYg/zCYdPn616UAj7hNpFgc9f982gLokyR/xbMNvtOwOpToysK+7Oc25oOam0xuUx CHcE4BfzJHO2VmUgWHeTvxervtIeM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u4zENaloQbHuhDx7Ii6mR9jRiVNbXP4XvuyhjlUO+pt6hGrPbzsmV9vGvN0 2nkGYmSpxQNEzHQf/CJyLhPWY5qTJlDEr4zHbloG2KRPQ6dv9mdRIyAwDxNDSq2tVlrJC+b4 hG9vYp9msCZspqVDRTzvRTZQoWAvGJUaUgZd/FLPTfFePAmX+enXkUKl332i82xNU/nTix73 WajK7WhWC2GugrEbi42fJgUKRtYWhY36QyxucB1VWUacn7iKt/eLfPrCVVsHP2j4vqjlL/HJ 38TvbqfI4WbXyXF630U7IOlMT8//vpo3Y8hjWw0p5dm22fyPcjfnqxDdDefKCJpN215JgvDi Ww42J+VDTsd+5FJYCSUqg3jXmJl1z6FewF5hjuUGf/VdKCrhFocfh1b8VFgne2M1vyNcPoS8 23lJOMpcVAmzFhmVl5y/az/kgPJzbQggSByv3pZZUlJttLKf9BSGwmKcoGEgNo8p/DUyMkQV kVCJdmnamJzYEa/s3XRasTZhoWzNSjIEfeJaLd8dVXTzByMzgYuj/raFP1UF33GQ8W+zr23b VLVc8pEjMQlWeRGfJRyvG4ZOYpFk0c7jw8LpERCd/1SGHL3RQ3CwOqouQgKV+0BjMbY6A6Vj CuWio7k=
In-Reply-To: <C61FF107-AD97-471E-AA2E-B6B570FC4E71@gmail.com>
Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="------------1AnNu0jXeyEKZwmc0NtBFN0y"
Message-ID-Hash: LG7ALVTOABE3ZJ7SDG5BJXILG2NUYQAN
X-Message-ID-Hash: LG7ALVTOABE3ZJ7SDG5BJXILG2NUYQAN
X-MailFrom: brian@innovationslab.net
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-pim.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: pim@ietf.org
X-Mailman-Version: 3.3.9rc4
Precedence: list
Subject: [pim] Re: IGMP v3 update - clarification about which router queries cause version fallback
List-Id: Protocol Independent Multicast <pim.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/pim/l0opUnVU6qUk_WgR7bBH-RKTQvc>
List-Archive: <https://mailarchive.ietf.org/arch/browse/pim>
List-Help: <mailto:pim-request@ietf.org?subject=help>
List-Owner: <mailto:pim-owner@ietf.org>
List-Post: <mailto:pim@ietf.org>
List-Subscribe: <mailto:pim-join@ietf.org>
List-Unsubscribe: <mailto:pim-leave@ietf.org>
Hey Dino!
We have a slim window to get something into 3376bis *if* we can
clearly articulate that it is a clarification (the IESG approved 3376bis
last week).
So, section 7.2.1 says:
The Host Compatibility Mode variable is based on whether an older
version General query was heard in the last Older Version Querier
Present Timeout seconds.
AND
If a host receives a query which causes its Querier Present timers to be
updated and correspondingly its compatibility mode, it should switch
compatibility modes immediately.
I think a simple approach is to change the first sentence to use a MUST
for changing mode based on a General query. So, something like:
The Host Compatibility Mode variable value MUST only be updated based on
whether an older version General query was heard...
Thoughts?
Brian
On 8/15/24 2:41 PM, Dino Farinacci wrote:
> Brian, this is a protocol design bug if this behavior was intended. Otherwise the RFC needs updating for clarity.
>
> In either case, the RFC text MUST BE fixed.
>
> Dino
>
>> On Aug 14, 2024, at 9:41 PM, Phil Karn <karn@ka9q.net> wrote:
>>
>> I understand that part. My point was that Linux appears to reset the interface compatibility mode timer for IGMPv2 in response to a *group specific* membership query. My reading of the RFC is that this should be done only for *general* membership queries (no specific group). Even worse, MacOS stops responding entirely to IGMPv3 queries.
>>
>> As things stand now, if you have an iPhone on your LAN, IGMPv3 is unusable for everybody.. If you have a MacOS system on your LAN and the querier is IGMPv3, multicast will be broken for you. Permanently. Is that the intent of the RFC?
>>
>> if you see a group-specific query and you’re a member of that group (otherwise you probably wouldn’t see the query!) you should answer with the version used for that query, but reset the compatibility mode timer to IGMPv2 only if the next *general* query uses IGMPv2.
>>
>>> On Aug 14, 2024, at 13:35, Brian Haberman <brian@innovationslab.net> wrote:
>>>
>>> Hi Phi,
>>> 3376 and 3376bis are pretty clear on this from my perspective. Section 7.2.1 says:
>>>
>>> In order to be compatible with older version routers, IGMPv3 hosts MUST operate in version 1 and version 2 compatibility modes. IGMPv3 hosts MUST keep state per local interface regarding the compatibility mode of each attached network. A host's compatibility mode is determined from the Host Compatibility Mode variable which can be in one of three states: IGMPv1, IGMPv2 or IGMPv3. This variable is kept per interface and is dependent on the version of General Queries heard on that interface as well as the Older Version Querier Present timers for the interface.
>>>
>>> Regards,
>>> Brian
>>>
>>> On 7/30/24 12:54 AM, Phil Karn wrote:
>>>> Hi. I'm been trying to figure out why Linux on my network keeps falling back to IGMPv2, and I've found out why. I may need a clarification to RFC3376.
>>>> At first, all works fine. My snooping switch issues an IGMPv3 general membership query and my Linux system answers with IGMPv3 membership messages. Great.
>>>> Then my Linux system sees a IGMPv2 group-specific query for 224.0.0.251 (the multicast DNS group). Since I'm running avahi-daemon (the mDNS service daemon) this elicits an outgoing IGMPv2 membership report for 224.0.0.251. Then subsequent IGMPv3 general membership queries elicits IGMPv2 (not v3) membership reports for all my other multicast group memberships.
>>>> I believe this is a bug in Linux, but I want to make sure RFC3376 says what I think it says.
>>>> RFC3376 says an IGMPv2 general query should change the interface version to IGMPv2 and start the IGMPv2 querier-present timer, after which the interface reverts to v3 if enough time goes by without another IGMPv2 general query. But it does not explicitly say that ONLY a IGMPv2 GENERAL query should do this -- that a group-specific IGMPv2 query should NOT cause the interface to drop into IGMPv2 mode even if we're a member of that group.
>>>> The problem is that buggy Apple devices frequently and gratuitously join and leave 224.0.0.251, and these devices don't speak IGMPv3. Whenever one leaves, the querier correctly issues a group-specific query to see if any other members are left -- and this group-specific query knocks Linux back to IGMPv2. Since these Apple devices gratuitously join and leave more rapidly than the IGMPv2-querier-present timer expires, the situation persists. IGMPv3 becomes unusable on my network.
>>>> So is it the intent of RFC3376 that ONLY a *general* IGMPv2/v1 query should trigger the version fallback logic, or should a group-specific IGMPv2 query do the same?
>>>> To summarize:
>>>> 1. RFC 3376 is arguably vague about exactly which membership queries should invoke a version fallback. All IGMPv2/v1 queries, or only general ones?
>>>> 2. Linux interprets any IGMPv2 membership query - not just a general query - as triggering a fallback. Right now I don't know if this is correct behavior or an honest misunderstanding of a vague specification.
>>>> 3. Apple really should get with the program and implement IGMPv3. It's only what, 22 years old?
>>>> 4. Apple really should get with the program and stop explicitly joining a very popular link-local multicast address (224.0.0.251) that every host is supposed to be an implicit member of anyway.
>>>> 5. Apple really should get with the program and stop gratuitously leaving and re-joining said link-local multicast group.
>>>> But I'm only asking this list to address point #1. Should group-specific IGMPv2 membership queries trigger a version fallback until the IGMPv2 Querier Present timer expires? Or should only general queries do so?
>>>> --Phil
>>>> _______________________________________________
>>>> pim mailing list -- pim@ietf.org
>>>> To unsubscribe send an email to pim-leave@ietf.org
>>> _______________________________________________
>>> pim mailing list -- pim@ietf.org
>>> To unsubscribe send an email to pim-leave@ietf.org
>>
>> _______________________________________________
>> pim mailing list -- pim@ietf.org
>> To unsubscribe send an email to pim-leave@ietf.org
>
- [pim] IGMP v3 update - clarification about which … Phil Karn
- [pim] Re: IGMP v3 update - clarification about wh… Brian Haberman
- [pim] Re: IGMP v3 update - clarification about wh… Phil Karn
- [pim] Re: IGMP v3 update - clarification about wh… Brian Haberman
- [pim] Re: IGMP v3 update - clarification about wh… Dino Farinacci
- [pim] Re: IGMP v3 update - clarification about wh… Brian Haberman
- [pim] Re: IGMP v3 update - clarification about wh… Dino Farinacci
- [pim] Re: IGMP v3 update - clarification about wh… Brian Haberman
- [pim] Re: IGMP v3 update - clarification about wh… Phil Karn
- [pim] Re: IGMP v3 update - clarification about wh… Brian Haberman
- [pim] Re: IGMP v3 update - clarification about wh… Dino Farinacci
- [pim] Re: IGMP v3 update - clarification about wh… Phil Karn
- [pim] Re: IGMP v3 update - clarification about wh… Phil Karn
- [pim] Re: IGMP v3 update - clarification about wh… Gyan Mishra
- [pim] Re: IGMP v3 update - clarification about wh… Brian Haberman
- [pim] Re: IGMP v3 update - clarification about wh… Brian Haberman
- [pim] Re: IGMP v3 update - clarification about wh… Brian Haberman
- [pim] Re: IGMP v3 update - clarification about wh… Brian Haberman
- [pim] Re: IGMP v3 update - clarification about wh… Gyan Mishra