Container Journal
Read post

Inside the Packet: How Kubernetes Networking Actually Works at L3/L4

A deep technical walkthrough of how Kubernetes networking actually works at the packet level, traced through a live cluster using tcpdump, ip route, iptables-save, conntrack, and bpftool. Covers the full dataplane path: Pod network namespaces and veth pairs, the cni0 Linux bridge for same-node Pod-to-Pod traffic, and cross-node routing via VXLAN overlay (Flannel/Calico), BGP native routing (Calico), and eBPF/XDP (Cilium). Explains how kube-proxy implements Service ClusterIPs using DNAT and iptables probability chains, the scaling problem at 2,000+ Services (48,000+ rules evaluated linearly), and why large clusters switch to IPVS or Cilium eBPF. Includes a debugging toolkit (ip route, conntrack, tcpdump), a section on DNS as the hidden cause of 80% of networking issues with NodeLocal DNSCache as the fix, NetworkPolicy enforcement differences between Calico and Cilium, and a decision matrix for choosing between iptables, IPVS, and eBPF based on cluster scale.

    #linux#kubernetes
Jul 10•7m read time•From cloudnativenow.com
Post cover image
Table of contents
The Networking Model: Three GuaranteesLayer 1: Pod Network Namespace and Veth PairsSeeing it in ActionThe Route Table Inside the PodLayer 2: the Bridge — Local Pod-To-PodSame-Node Pod-To-Pod Packet FlowCapturing ItLayer 3: Cross-Node Routing — Where CNI Plugins DivergeOption A: Overlay (VXLAN) — Flannel, Calico VXLAN ModeOption B: Native Routing (BGP) — Calico BGP ModeOption C: EBPF Dataplane and XDP — CiliumLayer 4: Services — the Invisible Load BalancerThe DNAT in ActionThe Iptables Scale ProblemIPVS Mode: O(1) Service LookupDebugging: the ToolkitStep 1: Verify Pod ConnectivityStep 2: Trace the Path on the NodeStep 3: Check Conntrack for Service IssuesStep 4: DNS — the Silent Killer and NodeLocal CachingNetworkPolicy: Firewalling at the Pod LevelHow Calico Implements NetworkPolicyHow Cilium Implements NetworkPolicyPerformance Comparison: Iptables Vs. IPVS Vs. EBPFArchitecture Decision GuideConclusionRelated
487 Impressions
Container Journal's image
Container Journal

Container Journal is a leading source of news, analysis, and insights on containerization, Kubernete...

100 Followers

•

207 Upvotes

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard