[pim] Re: IGMP v3 update - clarification about which router queries cause version fallback
Phil Karn <karn@ka9q.net> Thu, 15 August 2024 04:41 UTC
Return-Path: <karn@ka9q.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 84865C1CAF38 for <pim@ietfa.amsl.com>; Wed, 14 Aug 2024 21:41:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.909
X-Spam-Level:
X-Spam-Status: No, score=-1.909 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_PASS=-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=ka9q-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 rT6VfeiFOaID for <pim@ietfa.amsl.com>; Wed, 14 Aug 2024 21:41:33 -0700 (PDT)
Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) (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 D395FC1CAE9F for <pim@ietf.org>; Wed, 14 Aug 2024 21:41:33 -0700 (PDT)
Received: by mail-pj1-x1035.google.com with SMTP id 98e67ed59e1d1-2cd5d6b2581so394973a91.2 for <pim@ietf.org>; Wed, 14 Aug 2024 21:41:33 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ka9q-net.20230601.gappssmtp.com; s=20230601; t=1723696893; x=1724301693; darn=ietf.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=MdpCoNDubjJ+dK0Cz51B2dJDITGQkGI/VDPDK9ImWVY=; b=zvZkLQCVYLrV3c+gXCr5SVJsgmFLldHivNsVlE4qp3T3ToidnJ2US+63Vo+NQp3p2J CMg4BnB5Y8jxgysiq4WXGFuPRclV13NbvovVEvY3T21ofOQNZOQK1I0Zngd/vX0CpS6m nRMCifVNpih0wvrQNFkH9XXahsMjZV0XBvrv1ZrEcbPANn38gRxNjcdI6LCK/lvEB1kt cmfwLsj59G2TDLZ6eCLcwNg6crGRVdqNVJV/dF/YB1GSWvS7qF9khlqvn9dtBVDNJiw1 aG20nDmkhQB5FiSO+/D55bxOFxvBarsfLvqn7n0SGxwS1ssZTDChi6z5/OZKV1qJ4/Od ClVw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723696893; x=1724301693; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MdpCoNDubjJ+dK0Cz51B2dJDITGQkGI/VDPDK9ImWVY=; b=ekwpVdDAzCMlXvCAjKjqO87ljtjRVqhDCxeQUOVS0+T5ypUxwh1jne4E1BzeSk18SC U4AmfKddrs1xb+9gsQRkOCRHACTMRlErTMplKIgYiGT9PDHCGdPx8P0+VVtnJMkeFVCs 6UIO1cVBanJIWdV/UxxO2BRXcJlii0O+tkXwSJj6oMLAzW5V3E6xeB+LZRIZPv8UB5XB 3CRw/svQz8RBtQGiaKEx3r0spgBoSwpocO4Mjxe2Nb+ZVoiQGJAm0qhPSR/1ayqNAqSv VLYa/NBQkEMKukIs0RBbsb0irrgP3OVko/eV0Jk4TWNGz71JnMZrvNXLYN8t1lQlykab 7+AA==
X-Gm-Message-State: AOJu0YyJkXfFSLLmSM8A7f4rhyCEkUkbqqs0Y6Q3myKNi5S5U9V68bkz OLWBMZ3s5wHWGZNdAEckvuEoW+XFQplf7qtvsBDrYSYBbkZiHcKuogUXgbKWZ28C5RTPQbVZWQA =
X-Google-Smtp-Source: AGHT+IFaUuepAq6byXSKnHWSV8S3g3MPqMdgQJmAW9A53E6SyffXU3QfEPkpWOicRLkYtEUc4PvHIQ==
X-Received: by 2002:a17:90b:4a47:b0:2c9:3370:56e3 with SMTP id 98e67ed59e1d1-2d3aab606acmr5606514a91.34.1723696892678; Wed, 14 Aug 2024 21:41:32 -0700 (PDT)
Received: from smtpclient.apple ([2603:8001:5900:6e22:c94c:add5:50c3:7078]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2d3ac7cf227sm2711221a91.3.2024.08.14.21.41.30 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Aug 2024 21:41:31 -0700 (PDT)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6.1.1\))
From: Phil Karn <karn@ka9q.net>
In-Reply-To: <13f97817-2506-4ace-a44d-a7f8a8525c96@innovationslab.net>
Date: Wed, 14 Aug 2024 21:41:19 -0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <D2183B0A-209E-40A6-AC3F-553D122AAF01@ka9q.net>
References: <9a4ab4e0-a5aa-4c9b-bf02-01fd070858a8@ka9q.net> <13f97817-2506-4ace-a44d-a7f8a8525c96@innovationslab.net>
To: Brian Haberman <brian@innovationslab.net>
X-Mailer: Apple Mail (2.3731.700.6.1.1)
Message-ID-Hash: HBKPEMG5FTXP2GFYE7NBC6XJE4AMZ27F
X-Message-ID-Hash: HBKPEMG5FTXP2GFYE7NBC6XJE4AMZ27F
X-MailFrom: karn@ka9q.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/HXoRzlSqVMDlAEf5gnmnQdRHqhM>
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>
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] 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