[IPFIX]Semantic of one IPFIX IE depends on the semantic of another IPFIX IE (draft-liu-opsawg-ipfix-muti-layer)

"Benoit@everything-ops.net" <benoit@everything-ops.net> Sat, 15 November 2025 12:17 UTC

Return-Path: <benoit@everything-ops.net>
X-Original-To: ipfix@mail2.ietf.org
Delivered-To: ipfix@mail2.ietf.org
Received: from localhost (localhost [127.0.0.1]) by mail2.ietf.org (Postfix) with ESMTP id A3D088A09045 for <ipfix@mail2.ietf.org>; Sat, 15 Nov 2025 04:17:18 -0800 (PST)
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -2.096
X-Spam-Level:
X-Spam-Status: No, score=-2.096 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DC_PNG_UNO_LARGO=0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: mail2.ietf.org (amavisd-new); dkim=pass (2048-bit key) header.d=everything-ops.net
Received: from mail2.ietf.org ([166.84.6.31]) by localhost (mail2.ietf.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7bmXwj2pvFjC for <ipfix@mail2.ietf.org>; Sat, 15 Nov 2025 04:17:17 -0800 (PST)
Received: from 5.mo533.mail-out.ovh.net (5.mo533.mail-out.ovh.net [54.36.140.180]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail2.ietf.org (Postfix) with ESMTPS id 2F81A8A0902E for <ipfix@ietf.org>; Sat, 15 Nov 2025 04:17:16 -0800 (PST)
Received: from director3.derp.mail-out.ovh.net (director3.derp.mail-out.ovh.net [152.228.215.222]) by mo533.mail-out.ovh.net (Postfix) with ESMTPS id 4d7tKx6kRSz5x2B; Sat, 15 Nov 2025 12:17:09 +0000 (UTC)
Received: from director3.derp.mail-out.ovh.net (director3.derp.mail-out.ovh.net. [127.0.0.1]) by director3.derp.mail-out.ovh.net (inspect_sender_mail_agent) with SMTP for <paitken@ciena.com>; Sat, 15 Nov 2025 12:17:09 +0000 (UTC)
Received: from mta6.priv.ovhmail-u1.ea.mail.ovh.net (unknown [10.110.178.78]) by director3.derp.mail-out.ovh.net (Postfix) with ESMTPS id 4d7tKx4shPz5vZd; Sat, 15 Nov 2025 12:17:09 +0000 (UTC)
Received: from everything-ops.net (unknown [10.1.6.4]) (Authenticated sender: benoit@everything-ops.net) by mta6.priv.ovhmail-u1.ea.mail.ovh.net (Postfix) with ESMTPSA id 2CEFA8E0E45; Sat, 15 Nov 2025 12:17:09 +0000 (UTC)
Authentication-Results: garm.ovh; auth=pass (GARM-104R0051fda6470-3a9e-4c8c-a973-d23b3ab96cab, 85664E307D7934553C94113924BD6961BBDE74F9) smtp.auth=benoit@everything-ops.net
X-OVh-ClientIp: 91.86.233.52
Content-Type: multipart/alternative; boundary="------------COeirMtPNqs0jFJYbUj60mDr"
Message-ID: <70788f39-1017-4ad9-87c0-9c5707b2d5f5@everything-ops.net>
Date: Sat, 15 Nov 2025 13:17:06 +0100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: en-US, fr
To: "opsawg@ietf.org" <opsawg@ietf.org>
From: "Benoit@everything-ops.net" <benoit@everything-ops.net>
X-Ovh-Tracer-Id: 8017814712969649243
X-VR-SPAMSTATE: OK
X-VR-SPAMSCORE: 0
X-VR-SPAMCAUSE: dmFkZTEkTamSTzH1+y0kQvlZejMbRCEtOxOEty2bcbbjNsWppLG9zP7UW/UwYDyXemVy3IB5UcCcxFcihzrIN3P+FcvgM7vr70AqrPiqP/PdXD/PD6zBXNdlI1BRnD45fFWJve3SNZW8hrAeJVqP5bLVY8OGKXnws+Lg3+NFaiwD9kb2uN+C/JMagdHM/KHQInvQgC0gPohPqLCunId3s1y366MOZq3cHbsIfWs5gnSRd9GOhCenykGYAH9Vx+UP1YzoxhKDtADsMM+4oisuF2A/QIaCzOP8HI2d13nzSAk/63btSO0rPKQlgZfb9q2nuddDBzq8w7bOld+4RO4iuFDW+yzEaVBvKhbSYWL6ct7HMRNQwC4Nzwg1blJoVdijBMtBDJfC6/zdTJqaS/U1223nrcdIjGih1k7FFarKBmqcwDPNHVkmnWetg+Zfy7UG6yMiKYg+niZjFOmwNXQ8RC5nUwdKUzWmCzFFLlYZh+aCx1vTfbhR5JqRxKaDp4zunLUNayt5WyrdLOxEwhG4rgJQlDrPC6cqPEMqEYho33gSUFvQXBLdw2oMxWOnJSYPsxoMX1O3QcwuhuKCk02nBV5ZIZ8PUEzDBfRmeIE9TwD1VdHmkKycpwg+kNyktGy08+mHVszRmzMIWOT+si2Y70T+iaO3ted/SIXC6Nhog6PgZda8mQ
DKIM-Signature: a=rsa-sha256; bh=ytbDJzKB2GOH5swcr9GUSnJ65uxautcP5ayeOTzjJJI=; c=relaxed/relaxed; d=everything-ops.net; h=From; s=ovhmo-selector-1; t=1763209030; v=1; b=j4aUuTobKp0HMaaHRsFu69JI+QWmA9PG3FDTkFdWyZ4dLQ4pPkpCdIkkTfCzsT/w60BwleYu bgMKo+7ngjDkm+3+ACg/PD7kfeG3ueYD/TbKikZ322PGGm36Spem5N/QQw1ySCdTILo28XT4uUg WYaNmgLhEWOme0I0akpJahrnBM087jXnOCPoo7G4E1DJURmEUBNM0632AsluVytQ1aoJ3p2URCY cYegwSWRaNCsOu9cWfmLEtdfnANPHtsJNoMrkMaHUSt9WrtEUNyhSlopIMiBTreukOY/EzRiVFX SSOMHmW5w2QiAsJfPaUX6PJ8JYR3wuPodIJChbh4GrfXw==
Message-ID-Hash: SRBMIBHMGASSWHLV3PO2V3FVHU2WEISY
X-Message-ID-Hash: SRBMIBHMGASSWHLV3PO2V3FVHU2WEISY
X-MailFrom: benoit@everything-ops.net
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-ipfix.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: "ipfix@ietf.org" <ipfix@ietf.org>
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [IPFIX]Semantic of one IPFIX IE depends on the semantic of another IPFIX IE (draft-liu-opsawg-ipfix-muti-layer)
List-Id: IPFIX WG discussion list <ipfix.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipfix/EjqBhCAljDafKrrOfTTZ2s_lDIw>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ipfix>
List-Help: <mailto:ipfix-request@ietf.org?subject=help>
List-Owner: <mailto:ipfix-owner@ietf.org>
List-Post: <mailto:ipfix@ietf.org>
List-Subscribe: <mailto:ipfix-join@ietf.org>
List-Unsubscribe: <mailto:ipfix-leave@ietf.org>

Dear authors,

I would to add more information on draft-liu-opsawg-ipfix-muti-layer 
during the OPSAWG meeting, presented at the last IETF meeting.

In your proposal, the semantic of one IPFIX Information Element (e.g, 
the destIPv6address) relies on the content of another IE(e.g, 
encapLayerTop, encapLayer2).

We've been trying to avoid this in IPFIX. One reason: an Exporter might 
decide to include the variable length IPFIX IE 
<https://datatracker.ietf.org/doc/html/rfc7011#section-7>s at the end of 
the Template Record. However, this implicit rule was never specified in 
the IPFIX specifications but stems from this "the Information Elements 
in the Template Records is not guaranteed" sentence in RFC7011.

The only rules regarding the IPFIX IE order mentioned in RFC 7011 are
1.

    Multiple Scope Fields MAY be present in the Options Template Record,
    in which case the composite scope is the combination of the scopes.
    For example, if the two scopes are meteringProcessId and templateId,
    the combined scope is this Template for this Metering Process.  If a
    different order of Scope Fields would result in a Record having a
    different semantic meaning, then the order of Scope Fields MUST be
    preserved by the Exporting Process.

2.
    If an Information Element is required more than once in a Template,
    the different occurrences of this Information Element SHOULD follow
    the logical order of their treatments by the Metering Process.

Btw, do you see the difference between MUST for a Scope field and SHOULD 
for a normal IPFIX IE?

This is a known problem for IPFIX.
Already in MPLS, we had to define multiple IPFIX IEs in IANA 
<https://www.iana.org/assignments/ipfix/ipfix.xhtml> for that exact reason


This is not ideal but that's the way it is.
Even that MPLS-like solution is not ideal from a data interpretation 
point of view, as the networking context might be different from each 
exporter and each exporter only knows about itself. Practically, the 
encapLayer2 on different exporters might not produce the same results.
So the problem statement in your draft is a very valid one, as discussed 
on the microphone in IETF 124.

Not to sure what to do from here. Possible tracks:
- we keep the solution in your draft; and we might have more of such 
drafts, with a need for multiple different IEs which would require 
another IPFIX similar to encapLayerTop, encapLayer2, etc
- have a generic solution draft with topIPFIXIE, secondIPFIXIE, etc.
- impose the structure data RFC 6313 (I am not sure many collector 
supports this RFC)
- update 7011 with this change:

    OLD:

        If an Information Element is required more than once in a Template,
        the different occurrences of this Information Element SHOULD follow
        the logical order of their treatments by the Metering Process.


    NEW:

        If an Information Element is required more than once in a Template,
        the different occurrences of this Information Element MUST follow
        the logical order of their treatments by the Metering Process.

    OLD:
    the Information Elements in the Template Records is not guaranteed

    NEW:
    the Information Elements in the Template Records is guaranteed


Between the pragmatic solution (your draft), the perfect-but-not-widely 
implemented solution (RFC6313), the 
hopefully-very-quick-but-we-know-a-bis-RFC-is-never-quick solution 
(update RFC7101), let's discuss.

Copying the IPFIX mailing for discussion.

Regards, Benoit