arXiv:2610.08090cs.CROct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.08090

Explainable Rule Mining of IPv6 Extension-Header Presence Patterns from Paired-Vantage Captures

Priyanka Sinha, Nikolaos Kekatos, Stylianos Basagiannis, Antonio Anastasio Bruto da Costa, Alexios Lekidis, Pabitra Mitra, Tom Nianios, Elpiniki Papageorgiou

Priyanka Sinha 1^{1}, Nikolaos Kekatos 2^{2}, Stylianos Basagiannis 3^{3}, Antonio Anastasio Bruto da Costa 1^{1}, Alexios Lekidis 4^{4}, Pabitra Mitra 1^{1}, Tom Nianios 2^{2}, Elpiniki Papageorgiou 4^{4}

1^{1}IIT Kharagpur, India: {priyanka.sinha.iitg,antonio.cse.iitkgp,pabitra}@gmail.com | 2^{2}Clone Systems, CY: {nkekatos,tnianios}@clone-systems.com | 3^{3}IHU, GR: basagiannis@ihu.gr | 4^{4}Univ. of Thessaly, GR: {alekidis,elpinikipapageorgiou}@uth.gr

Abstract—IPv6 extension headers (EHs), such as fragmentation, segment routing, and in-situ telemetry, are operationally important yet widely dropped in transit, and characterising their behaviour from packet captures is a recurring measurement problem. We ask whether an explainable miner can recover human-readable rules of EH behaviour, and we contribute two reusable tools: a negative-control protocol that diagnoses whether a mined “temporal” network rule reflects genuine cross-packet dynamics or mere within-packet co-occurrence, and a sender-conditioned, per-family EH-retention measurement. Applying an interpretable temporal-logic rule miner to the JAMES paired-vantage dataset, we recover a portable Fragment-EH rule that the protocol reveals to be a within-packet, near-definitional co-occurrence rather than a temporal pattern, so the temporal-logic machinery does no work for this dominant rule; the retention measurement independently recovers the expected within-window ordering of EH observability. Our main result is therefore an honest, controlled negative finding, corroborated by executed decision-tree and large-language-model baselines: on the evaluated JAMES traces network-temporal structure does not carry the dominant Fragment-EH signal, and we supply the controls that establish when it would, validated on a synthetic positive control containing a genuine cross-packet dependency.

Index Terms—explainable AI, temporal logic, specification mining, network traffic analysis, IPv6 extension headers, negative controls, interpretable classification

I. INTRODUCTION

IPv6 [1] is the current version of the Internet Protocol, the scheme that addresses and routes every packet on the Internet. It was created chiefly because its predecessor, IPv4, was running out of addresses; besides a vastly larger address space, IPv6 was given a simpler and extensible header. Instead of packing optional features into a fixed header, IPv6 carries them in a chain of extension headers (EHs) placed between the main 40-byte header and the data (Fig. 1). Each header points to the next through a Next-Header field, so anything inspecting the packet must read down the chain. Different EHs do different jobs: fragmenting oversized packets, source routing and Segment Routing (SRv6), carrying diagnostics such as Performance and Diagnostic Metrics (PDM) [2] and telemetry, and IPsec security. This design lets operators add network functions without changing the base protocol.

The catch is that many devices along the path, such as firewalls and routers, do not fully process this variable-length chain and, a great deal of the time, simply drop packets that carry extension headers. Because Internet standards are voluntary [3], real deployments diverge from the written specification [4], and EHs are among the starkest examples: since RFC 7872, repeated Internet-wide measurements have found intermediate nodes silently discarding EH-bearing packets, at rates that vary by network operator (Autonomous System, AS), by EH type, and over time [5]–[7]. Anything that relies on EHs, from diagnostics to tunnelling, therefore cannot be trusted to work end-to-end without first measuring it. We treat this as a measurement-and-method problem and are careful not to claim a security consequence our data do not show: EH drop is fail-closed, and we do not assert an exploitable attack surface here.

For a network operator this is a practical problem: before turning on an EH-dependent service, one needs to know which extension headers survive on which paths, and today that answer comes from bespoke, throw-away measurement scripts. What would help is a way to take a batch of captured packets and automatically produce a short, human-readable description of which packet features go with EH presence or absence, and how that varies across measurement points, so the same result both predicts and explains. This is the goal

Figure

Fig. 1. An IPv6 header chain (real capture). The fixed header's Next-Header (nxt=44) points to a Fragment EH, whose Next-Header (58) points to the ICMPv6 payload (box: its 8 bytes); a middlebox must walk the chain and many instead drop the packet. Our predicates read these markers off the wire: HAS_FRAG_EH flags a Fragment header in the chain, and as JAMES probes carry a single EH the fixed-header Next-Header identifies it directly.

© 2026 IEEE. Personal use of this material is permitted. Permission from IEEE must be obtained for all other uses, in any current or future media, including reprinting/republishing this material for advertising or promotional purposes, creating new collective works, for resale or redistribution to servers or lists, or reuse of any copyrighted component of this work in other works. This work has been accepted for publication at the 2026 IEEE International Conference on Cyber Security and Resilience (IEEE CSR 2026).

of explainable machine learning [8]: instead of a black box, produce a model whose output is the explanation. Equivalently it is a specification-mining problem [9], learning the rule from observed data rather than writing it by hand. A readable rule is only useful, though, if it reflects real behaviour and not an artefact of how the packets happen to be built, which is exactly what we guard against.

PSIMiner [10] fits this formulation. It learns rules in a fragment of metric temporal logic (MTL) [11] as timed sequences of predicates, with inter-event intervals that it can, in principle, refine from data. It has previously been used to explain outcomes of multi-party dialogues [12]; we apply the same pipeline to network packet traces. We deliberately restrict the predicate vocabulary to IPv6-fixed-header fields and EH-chain flags: this keeps every mined rule expressible in terms a network engineer reads directly off the IPv6 header, which is the explainability property the design rests on.

Contributions. (i) We cast IPv6 extension-header presence analysis as timed temporal-logic specification mining over labelled pcap captures, with an IPv6-header-only vocabulary as a deliberate explainability constraint (§II). (ii) Our reusable methodological contribution is a negative-control protocol (joint-row permutation, independent-column shuffle, lag-augmented decision-tree) that diagnoses whether a mined “temporal” rule is genuine cross-packet dynamics or within-packet co-occurrence (§IV). (iii) The headline is a controlled negative finding: across all 21 JAMES paired-vantage receivers the single portable Fragment-EH rule (!PLEN_MED | => ## [0:4] !HAS_FRAG_EH, 87.4–98.9%) is a within-packet, near-definitional co-occurrence, so the temporal-logic machinery does no work for this dominant rule. (iv) Two executed baselines, a decision tree and an LLM rule-miner, reproduce this (§IV-A). (v) A sender-conditioned retention measurement recovers an ordering consistent with prior JAMES findings (§IV-B).