[IPFIX]Re: [OPSAWG]Semantic of one IPFIX IE depends on the semantic of another IPFIX IE (draft-liu-opsawg-ipfix-muti-layer)
liu.yao71@zte.com.cn Tue, 18 November 2025 08:07 UTC
Return-Path: <liu.yao71@zte.com.cn>
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 2AA738B9020A; Tue, 18 Nov 2025 00:07:43 -0800 (PST)
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -1.896
X-Spam-Level:
X-Spam-Status: No, score=-1.896 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, 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, UNPARSEABLE_RELAY=0.001] autolearn=ham autolearn_force=no
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 2Max3_SKyzn6; Tue, 18 Nov 2025 00:07:42 -0800 (PST)
Received: from mxhk.zte.com.cn (mxhk.zte.com.cn [160.30.148.35]) (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 0B81F8B901F4; Tue, 18 Nov 2025 00:07:42 -0800 (PST)
Received: from mse-fl2.zte.com.cn (unknown [10.5.228.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mxhk.zte.com.cn (FangMail) with ESMTPS id 4d9cfY5RYLz8Xs7g; Tue, 18 Nov 2025 16:07:33 +0800 (CST)
Received: from njy2app02.zte.com.cn ([10.40.13.116]) by mse-fl2.zte.com.cn with SMTP id 5AI87842094157; Tue, 18 Nov 2025 16:07:08 +0800 (+08) (envelope-from liu.yao71@zte.com.cn)
Received: from mapi (njy2app02[null]) by mapi (Zmail) with MAPI id mid203; Tue, 18 Nov 2025 16:07:10 +0800 (CST)
Date: Tue, 18 Nov 2025 16:07:10 +0800
X-Zmail-TransId: 2afa691c292e7a5-adb03
X-Mailer: Zmail v1.0
Message-ID: <20251118160710091KP-PmHXB_Rmbiv9nwJXrC@zte.com.cn>
In-Reply-To: <20251118152959482kF0vxpzYUkD-4p54gbzRL@zte.com.cn>
References: 70788f39-1017-4ad9-87c0-9c5707b2d5f5@everything-ops.net,20251118152959482kF0vxpzYUkD-4p54gbzRL@zte.com.cn
Mime-Version: 1.0
From: liu.yao71@zte.com.cn
To: benoit@everything-ops.net
Content-Type: multipart/mixed; boundary="=====_001_next====="
X-MAIL: mse-fl2.zte.com.cn 5AI87842094157
X-TLS: YES
X-SPF-DOMAIN: zte.com.cn
X-ENVELOPE-SENDER: liu.yao71@zte.com.cn
X-SPF: None
X-SOURCE-IP: 10.5.228.133 unknown Tue, 18 Nov 2025 16:07:33 +0800
X-Fangmail-Anti-Spam-Filtered: true
X-Fangmail-MID-QID: 691C2945.001/4d9cfY5RYLz8Xs7g
Message-ID-Hash: ZHLJKHKPGXM3V7WYFYZP2IP7HDA5CNZX
X-Message-ID-Hash: ZHLJKHKPGXM3V7WYFYZP2IP7HDA5CNZX
X-MailFrom: liu.yao71@zte.com.cn
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: opsawg@ietf.org, ipfix@ietf.org
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [IPFIX]Re: [OPSAWG]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/2wP3PvFsWxAZVKUJpjYyMEZ4tug>
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>
Hi Benoit, Thanks a lot for taking the discussion to the list and providing your thoughts. Current I couldn't see a perfect solution of this problem. Please see my reply inline with [Yao]. Regards, Yao From: Benoit@everything-ops.net <benoit@everything-ops.net> To: opsawg@ietf.org <opsawg@ietf.org>; Cc: ipfix@ietf.org <ipfix@ietf.org>;paitken@ciena.com <paitken@ciena.com>;Brian Trammell <ietf@trammell.ch>; Date: 2025年11月15日 20:17 Subject: [OPSAWG]Semantic of one IPFIX IE depends on the semantic of another IPFIX IE (draft-liu-opsawg-ipfix-muti-layer) _______________________________________________ OPSAWG mailing list -- opsawg@ietf.org To unsubscribe send an email to opsawg-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. [Yao] Yes, encapLayer2 on different exporters might not produce the same results, the encapLayer2 is the layer2 information on each exportor locally. 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 [Yao] Yes, following the solution of our draft, if one day there're packets with four or five or more encapsulation layers in the network and people wants to export the packet header information of each layer, the encapLayer4, encapLayer5 are needed. - have a generic solution draft with topIPFIXIE, secondIPFIXIE, etc. [Yao] Do you mean defining new IEs such as topSourceIPv6Address,secondSourceIPv6Address, thirdSourceIPv6Address...? It's a generic solution, but there're many fields in the packet header, so a large amount of new IEs needs to be defined for each field of each layer. - impose the structure data RFC 6313 (I am not sure many collector supports this RFC) [Yao] From my understanding, the structure data(basicList/subTemplateList/subTemplateMultiList) in RFC6313 is more suitable for the data with a fixed structure. In the multi-layer encapsulation scenario, there're different data collection requirements, which leads to many different data structures, e.g, outer DA& inner SA, outer SA&inner DA, outer DA & inner SRH, and etc. I'm still trying to figure out how to use RFC6313 to fulfill the multi-layer encapsulation collection requirement. - update 7011 with this change: [Yao] Just updating RFC7011 can only fulfill the requirements of collecting the same fields from both the outer and inner packet headers(Req-a in the drart), but Req-b/c/d still can't be fulfilled, e.g, for a packet with three IPv6 headers encapsulated, the monitor only wants to collect the information of the innermost IPv6 header. 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 [Yao] About the order of the IEs in the Template, https://datatracker.ietf.org/doc/html/rfc6313#section-2.2 says that "some encoding optimizations are based on the permutation of Information Element order". So I'm not sure whether 7011 can be updated to say that the order of the IEs in the Template Records is guaranteed if there're implementations that don't guarantee the order . But if solutions similar to our draft are used, maybe just to specify in the solution draft that the order of the IEs in the Template Records MUST be guaranteed when encapLayerTop/encapLayer2/encapLayer3 are used can make the solution work. 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
- [IPFIX]Semantic of one IPFIX IE depends on the se… Benoit@everything-ops.net
- [IPFIX]Re: [OPSAWG]Semantic of one IPFIX IE depen… liu.yao71
- [IPFIX]Re: [OPSAWG]Semantic of one IPFIX IE depen… liu.yao71