Architectural Invariant Design: Cilium eBPF BIG TCP with IPv6 Extension Header MTU Boundary Enforcement
Cilium eBPF BIG TCP with IPv6 Extension Header MTU Boundary Enforcement defines an industrial-grade behavioral standard for devops engineering. Enabling IPv6 BIG TCP across 100GbE+ fabrics increases GRO/GSO limits up to 194KB per super-packet, making silent packet truncation catastrophic. All Cilium eBPF tail programs and BPF-to-BPF functions handling IPv6 packets must account for cumulative IPv6 extension header chains (HBH, Routing, Fragment, DSR) before validating against the hardware interface GSO maximum and L2 MTU limits. Failure to accurately compute effective payload boundaries leads to silent hardware ring-buffer drops or invalid unfragmentable egress packet states. Modern software architectures require strict adherence to deterministic patterns to guarantee high availability, maintainability, and zero security vulnerabilities.
Hazard Analysis: What Breaks Without This Rule
The following failure modes have been cataloged from hundreds of hours of production code reviews where AI assistants produced non-compliant implementations:
| Failure Mode | AI Symptom (The Anti-Pattern) | Severity | Production Impact & Remedy |
|---|---|---|---|
| AI Hallucination & Deprecation Drift | Hardcoded Base MTU Offsets and Incomplete IPv6 Extension Header Length Accounting in Super-Packet Pipelines | Critical | Violating this industrial standard introduces regression bugs, security risks, and unexpected runtime failures in production. Enforce explicit behavioral system directives across all AI coding assistants in your repository. |
| Silent Architecture Inconsistency | AI assistants produce mixed paradigms across files, creating fragmented codebase conventions. | Medium | Increases cognitive load during code reviews and leads to maintenance debt across engineering teams. Pin project conventions in .cursor/rules, CLAUDE.md, and AGENTS.md so all team agents follow identical guardrails. |
Step-by-Step Production Directives
Each rule constraint below is injected into the AI agent's system prompt to establish deterministic boundaries:
Engineers MUST ALWAYS compute the full dynamic length of IPv6 extension header chains (including Hop-by-Hop, Routing, Destination Options, and Segment Routing SRv6) before calculating MTU headroom or comparing against skb->len in BIG TCP enabled nodes.
Engineers MUST ALWAYS compute the full dynamic length of IPv6 extension header chains (including Hop-by-Hop, Routing, Destination Options, and Segment Routing SRv6) before calculating MTU headroom or comparing against skb->len in BIG TCP enabled nodes.
Engineers MUST NOT assume an IPv6 packet header is exactly 40 bytes (sizeof(struct ipv6hdr)) when evaluating maximum transmission boundaries for GSO super-packets exceeding standard 64KB buffers.
Engineers MUST NOT assume an IPv6 packet header is exactly 40 bytes (sizeof(struct ipv6hdr)) when evaluating maximum transmission boundaries for GSO super-packets exceeding standard 64KB buffers.
eBPF parsers MUST use verifier-compliant bounded iterations (e.g., #pragma unroll or bounded loops limited to max 8 headers) with explicit `data + offset <= data_end` boundary validations on every extension header step.
eBPF parsers MUST use verifier-compliant bounded iterations (e.g., #pragma unroll or bounded loops limited to max 8 headers) with explicit `data + offset <= data_end` boundary validations on every extension header step.
Datapath code MUST explicitly trigger ICMPv6 Packet Too Big (PTB, Type 2, Code 0) generation with the calculated MTU when an unfragmentable super-packet or transit frame exceeds the L2 device MTU or path MTU ceiling.
Datapath code MUST explicitly trigger ICMPv6 Packet Too Big (PTB, Type 2, Code 0) generation with the calculated MTU when an unfragmentable super-packet or transit frame exceeds the L2 device MTU or path MTU ceiling.
Control plane configurations MUST ensure `enable-ipv6-big-tcp
Control plane configurations MUST ensure `enable-ipv6-big-tcp: true` is coupled with consistent MTU settings across `cilium-config` and parent node network interfaces (e.g., device MTU matching physical interface MTU without tail-fragmentation assumptions).
Frequently Asked Technical Questions
Common questions developers face when configuring AI coding assistants for this stack:
Q:Why is Cilium eBPF BIG TCP with IPv6 Extension Header MTU Boundary Enforcement critical for AI coding assistants?
Enabling IPv6 BIG TCP across 100GbE+ fabrics increases GRO/GSO limits up to 194KB per super-packet, making silent packet truncation catastrophic. All Cilium eBPF tail programs and BPF-to-BPF functions handling IPv6 packets must account for cumulative IPv6 extension header chains (HBH, Routing, Fragment, DSR) before validating against the hardware interface GSO maximum and L2 MTU limits. Failure to accurately compute effective payload boundaries leads to silent hardware ring-buffer drops or invalid unfragmentable egress packet states. Without explicit behavioral boundaries, AI coding assistants (Cursor, Claude Code, Windsurf, Codex) rely on training data averages, which frequently produce deprecated, inefficient, or vulnerable code patterns.
Q:How does adopting this rule prevent AI hallucinations?
This rule explicitly declares what the AI must avoid (Hardcoded Base MTU Offsets and Incomplete IPv6 Extension Header Length Accounting in Super-Packet Pipelines) and prescribes verified positive examples. Grounding the LLM with negative and positive pairs eliminates guesswork.
Q:Which AI coding environments are supported?
This specification is multi-platform compatible: Cursor (.cursor/rules/*.mdc & .cursorrules), Anthropic Claude Code (CLAUDE.md), Windsurf (.windsurfrules), Codex / Cline (AGENTS.md), and GitHub Copilot (.github/copilot-instructions.md).
Q:Can I combine this rule with other technology stacks?
Yes. Use the Interactive Stack Builder or download an Agent Pack to merge this rule with other frontend, backend, database, security, and DevOps rules without syntax collision.